InterpolateCubicSplineWithDerivatives Method |
Create a piecewise cubic Hermite spline interpolation based on arbitrary points
and their slopes/first derivative.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IInterpolation CubicSplineWithDerivatives(
IEnumerable<double> points,
IEnumerable<double> values,
IEnumerable<double> firstDerivatives
)
Parameters
- points IEnumerableDouble
- The sample points t.
- values IEnumerableDouble
- The sample point values x(t).
- firstDerivatives IEnumerableDouble
- The slope at the sample points. Optimized for arrays.
Return Value
IInterpolation
An interpolation scheme optimized for the given sample points and values,
which can then be used to compute interpolations and extrapolations
on arbitrary points.
Remarks
if your data is already sorted in arrays, consider to use
MathNet.Numerics.Interpolation.CubicSpline.InterpolateHermiteSorted
instead, which is more efficient.
See Also