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

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public CsInterpolate(
	double[] xData,
	double[] yData,
	CsInterpolate..::.Condition typeLeft,
	double valueLeft,
	CsInterpolate..::.Condition typeRight,
	double valueRight
)
Visual Basic (Declaration)
Public Sub New ( _
	xData As Double(), _
	yData As Double(), _
	typeLeft As CsInterpolate..::.Condition, _
	valueLeft As Double, _
	typeRight As CsInterpolate..::.Condition, _
	valueRight As Double _
)
Visual C++
public:
CsInterpolate(
	array<double>^ xData, 
	array<double>^ yData, 
	CsInterpolate..::.Condition typeLeft, 
	double valueLeft, 
	CsInterpolate..::.Condition typeRight, 
	double valueRight
)

Parameters

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

See Also