Hermite Module
Hermite cubic splines are defined by the function values and their slopes (first derivatives). If the slopws are unknown, they must be estimated.
Types
| Type | Description |
Functions and values
| Function or value | Description |
Full Usage:
interpolate xData yData
Parameters:
Vector<float>
-
Note: Must not contain duplicate x values (use Approximation.regularizeValues to preprocess data!)
yData : Vector<float>
-
function value at x values
Returns: HermiteCoef
Coefficients that define the interpolating function.
|
Second derivative (curvature) is NOT necessarily continuous at knots to allow higher flexibility to reduce oscillations!
Example
val xData: obj
val yData: obj
val coefficients: obj
|
Full Usage:
interpolatePreserveMonotonicity xData yData
Parameters:
Vector<float>
-
x values
yData : Vector<float>
-
function value at x values
Returns: HermiteCoef
Coefficients that define the interpolating function.
|
Second derivative (curvature) is NOT necessarily continuous at knots to allow higher flexibility to reduce oscillations!Constrained Cubic Spline Interpolation for Chemical Engineering Applications by CJC Kruger
Example
val xData: obj
val yData: obj
val coefficients: obj
|
Full Usage:
interpolateSorted xData yData
Parameters:
Vector<float>
-
Note: Must not contain duplicate x values (use Approximation.regularizeValues to preprocess data!)
yData : Vector<float>
-
function value at x values
Returns: HermiteCoef
Coefficients that define the interpolating function.
|
Second derivative (curvature) is NOT necessarily continuous at knots to allow higher flexibility to reduce oscillations!
Example
val xData: obj
val yData: obj
val coefficients: obj
|
Full Usage:
interpolateWithSlopes xData yData slopes
Parameters:
Vector<float>
-
Note: Must not contain duplicate x values (use Approximation.regularizeValues to preprocess data!)
yData : Vector<float>
-
function value at x values
slopes : Vector<float>
-
slopes at x values
Returns: HermiteCoef
Coefficients that define the interpolating function.
|
Second derivative (curvature) is NOT necessarily continuous at knots to allow higher flexibility to reduce oscillations!
|
Full Usage:
predict coef x
Parameters:
HermiteCoef
-
Interpolation functions coefficients.
x : float
-
X value of which the y value should be predicted.
Returns: float
Function that takes an x value and returns function value.
|
x values outside of the xValue range are predicted by straight lines defined by the nearest knot!
Example
val xData: obj
val yData: obj
val coefficients: obj
val func: (float -> obj)
|
FSharp.Stats