View source: R/monotonicity-contraints.R
| add_two_points | R Documentation | 
Add two additional points to a spline to ensure monotonicity of the quantile function.
add_two_points(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 eight components:
x_new1The position of the first new point.
y_new1The value of the spline at x_new1.
s_new1The slope of the spline at x_new1.
a_new1The second derivative of the spline at x_new1.
x_new2The position of the second new point.
y_new2The value of the spline at x_new2.
s_new2The slope of the spline at x_new2.
a_new2The second derivative of the spline at x_new2.
Thomas Blanchet, Juliette Fournier, Thomas Piketty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.