IMSL C# Numerical Library

CsInterpolate Constructor (Double[], Double[], Condition, Double, Condition, Double)

Constructs a cubic spline that interpolates the given data points with specified derivative endpoint conditions.

public CsInterpolate(
   double[] xData,
   double[] yData,
   Condition typeLeft,
   double valueLeft,
   Condition typeRight,
   double valueRight
);

Parameters

xData
A double array containing the x-coordinates of the data. Values must be distinct.
yData
A double array containing the y-coordinates of the data. The arrays xData and yData must have the same length.
typeLeft
A CsInterpolate.Condition denoting the type of condition at the left endpoint. This can be NotAKnot, FirstDerivative or SecondDerivative.
valueLeft
A double value at the left endpoint. If typeLeft is NotAKnot this is ignored, Otherwise, it is the value of the specified derivative.
typeRight
A CsInterpolate.Condition denoting the type of condition at the right endpoint. This can be NotAKnot, FirstDerivative or SecondDerivative.
valueRight
A double value at the right endpoint.

See Also

CsInterpolate Class | Imsl.Math Namespace | CsInterpolate Constructor Overload List