CubicSpline.CreateClamped Method

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

CreateClamped(IList<Point>, Double, Double) Constructs a clamped cubic spline through a set of points.
CreateClamped(IList<Double>, IList<Double>, Double, Double) 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.
C#
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

CubicSpline

CreateClamped(IList<Double>, IList<Double>, Double, Double)

Constructs a clamped cubic spline through a set of points.
C#
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

CubicSpline

Exceptions

ArgumentNullException

xValues is null.

-or-

yValues is null.

DimensionMismatchException

The length of xValues does not equal the length of yValues.

See Also