Cubic Spline.Create Clamped Method
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Create | Constructs a clamped cubic spline through a set of points. |
Create | Constructs a clamped cubic spline through a set of points. |
CreateClamped(IList<Point>, Double, Double)
Constructs a clamped cubic spline through a set of points.
public static CubicSpline CreateClamped(
IList<Point> dataPoints,
double leftDerivative,
double rightDerivative
)
Parameters
- dataPoints IList<Point>
- An list of Point values containing the data points.
- leftDerivative Double
- The value of the derivative at the leftmost data point.
- rightDerivative Double
- The value of the derivative at the rightmost data point.
Return Value
CubicSplineCreateClamped(IList<Double>, IList<Double>, Double, Double)
Constructs a clamped cubic spline through a set of points.
public static CubicSpline CreateClamped(
IList<double> xValues,
IList<double> yValues,
double leftDerivative,
double rightDerivative
)
Parameters
- xValues IList<Double>
- A Double list containing the x-values of the data points.
- yValues IList<Double>
- A Double list containing the y-values corresponding to the values in xValues.
- leftDerivative Double
- The value of the derivative at the leftmost data point.
- rightDerivative Double
- The value of the derivative at the rightmost data point.
Return Value
CubicSplineExceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |