CsInterpolate Constructor (Double, Double, CsInterpolateCondition, Double, CsInterpolateCondition, Double) |
Constructs a cubic spline that interpolates the given data points
with specified derivative endpoint conditions.
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public CsInterpolate(
double[] xData,
double[] yData,
CsInterpolateCondition typeLeft,
double valueLeft,
CsInterpolateCondition typeRight,
double valueRight
)
Public Sub New (
xData As Double(),
yData As Double(),
typeLeft As CsInterpolateCondition,
valueLeft As Double,
typeRight As CsInterpolateCondition,
valueRight As Double
)
public:
CsInterpolate(
array<double>^ xData,
array<double>^ yData,
CsInterpolateCondition typeLeft,
double valueLeft,
CsInterpolateCondition typeRight,
double valueRight
)
new :
xData : float[] *
yData : float[] *
typeLeft : CsInterpolateCondition *
valueLeft : float *
typeRight : CsInterpolateCondition *
valueRight : float -> CsInterpolate
Parameters
- xData
- Type: SystemDouble
A double array containing the x-coordinates of the data.
Values must be distinct.
- yData
- Type: SystemDouble
A double array containing the y-coordinates of the data. The
arrays xData and yData must have the same length.
- typeLeft
- Type: Imsl.MathCsInterpolateCondition
A CsInterpolate.Condition denoting the type of condition at the left endpoint.
This can be NotAKnot, FirstDerivative or
SecondDerivative.
- valueLeft
- Type: SystemDouble
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.MathCsInterpolateCondition
A CsInterpolate.Condition denoting the type of condition at the right endpoint.
This can be NotAKnot, FirstDerivative or
SecondDerivative.
- valueRight
- Type: SystemDouble
A double value at the right endpoint.
See Also