View source: R/monotonicity-contraints.R
| add_one_point | R Documentation |
Add an additional point to a spline to ensure monotonicity of the quantile function.
add_one_point(x0, x1, y0, y1, s0, s1, a0, a1)
x0 |
Lower bound of the interval. |
x1 |
Upper bound of the interval. |
y0 |
Value of the spline at |
y1 |
Value of the spline at |
s0 |
Slope of the spline at |
s1 |
Slope of the spline at |
a0 |
Second derivative of the spline at |
a1 |
Second derivative of the spline at |
A list with four components:
x_newThe position of the new point.
y_newThe value of the spline at the new point.
s_newThe slope of the spline at the new point.
a_newThe second derivative of the spline at the new point.
Thomas Blanchet, Juliette Fournier, Thomas Piketty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.