View source: R/monotonicity-contraints.R
distance_one_point | R Documentation |
These functions calculate the distance between:
A first spline characterized by two points.
A second set of two splines characterized by the same two points, plus an additional point between the first two.
They also calculate the derivative of that distance with respect to the coordinates of the additional point.
distance_one_point(
x0,
x1,
y0,
y1,
s0,
s1,
a0,
a1,
x_new,
y_new,
s_new,
a_new,
y_ini,
s_ini,
a_ini
)
x0 |
Lower bound of the interval. |
x1 |
Upper bound of the interval. |
y0 |
Value of the first spline at |
y1 |
Value of the first spline at |
s0 |
Slope of the first spline at |
s1 |
Slope of the first spline at |
a0 |
Second derivative of the first spline at |
a1 |
Second derivative of the first spline at |
x_new |
The position of the additional point. |
y_new |
The value of the second spline at the additional point. |
s_new |
The slope of the second spline at the additional point. |
a_new |
The second derivative of the second spline at the additional point. |
y_ini |
The value of the first spline at |
s_ini |
The slope of the first spline at |
a_ini |
The second derivative of the first spline at |
Thomas Blanchet, Juliette Fournier, Thomas Piketty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.