Namespaces

Types

Type CubicSplineInterpolation

Namespace MathNet.Numerics.Interpolation.Algorithms

Interfaces IInterpolation

Cubic Spline Interpolation Algorithm with continuous first and second derivatives.
This algorithm supports both differentiation and integration.

Methods

Public instance methods

void Initialize(IList<double> samplePoints, IList<double> sampleValues, SplineBoundaryCondition leftBoundaryCondition, double leftBoundary, SplineBoundaryCondition rightBoundaryCondition, double rightBoundary)

Initialize the interpolation method with the given spline coefficients (sorted by the sample points t).
Parameters
IList<double> samplePoints Sample Points t, sorted ascending.
IList<double> sampleValues Sample Values x(t)
SplineBoundaryCondition leftBoundaryCondition Condition of the left boundary.
double leftBoundary Left boundary value. Ignored in the parabolic case.
SplineBoundaryCondition rightBoundaryCondition Condition of the right boundary.
double rightBoundary Right boundary value. Ignored in the parabolic case.

Public static methods

Double[] EvaluateSplineCoefficients(IList<double> samplePoints, IList<double> sampleValues, SplineBoundaryCondition leftBoundaryCondition, double leftBoundary, SplineBoundaryCondition rightBoundaryCondition, double rightBoundary)

Evaluate the spline coefficients as used internally by this interpolation algorithm.
Parameters
return Double[] Spline Coefficient Vector
IList<double> samplePoints Sample Points t, sorted ascending.
IList<double> sampleValues Sample Values x(t)
SplineBoundaryCondition leftBoundaryCondition Condition of the left boundary.
double leftBoundary Left boundary value. Ignored in the parabolic case.
SplineBoundaryCondition rightBoundaryCondition Condition of the right boundary.
double rightBoundary Right boundary value. Ignored in the parabolic case.

Double[] EvaluateSplineDerivatives(IList<double> samplePoints, IList<double> sampleValues, SplineBoundaryCondition leftBoundaryCondition, double leftBoundary, SplineBoundaryCondition rightBoundaryCondition, double rightBoundary)

Evaluate the spline derivatives as used internally by this interpolation algorithm.
Parameters
return Double[] Spline Derivative Vector
IList<double> samplePoints Sample Points t, sorted ascending.
IList<double> sampleValues Sample Values x(t)
SplineBoundaryCondition leftBoundaryCondition Condition of the left boundary.
double leftBoundary Left boundary value. Ignored in the parabolic case.
SplineBoundaryCondition rightBoundaryCondition Condition of the right boundary.
double rightBoundary Right boundary value. Ignored in the parabolic case.