CubicSpline.CreateNatural Method

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

CreateNatural(IList<Point>) Constructs the natural cubic spline through a set of points.
CreateNatural(IList<Double>, IList<Double>) Constructs the natural cubic spline through a set of points.

CreateNatural(IList<Point>)

Constructs the natural cubic spline through a set of points.
C#
public static CubicSpline CreateNatural(
	IList<Point> dataPoints
)

Parameters

dataPoints  IList<Point>
An list of Point values containing the data points.

Return Value

CubicSpline

Remarks

This constructor constructs a natural cubic spline. This means that the second derivative of the curve at the end points is zero.

Exceptions

ArgumentNullExceptiondataPoints is null.

CreateNatural(IList<Double>, IList<Double>)

Constructs the natural cubic spline through a set of points.
C#
public static CubicSpline CreateNatural(
	IList<double> xValues,
	IList<double> yValues
)

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.

Return Value

CubicSpline

Remarks

This constructor constructs a natural cubic spline. This means that the second derivative of the curve at the end points is zero.

Exceptions

ArgumentNullExceptionxValues is null.

-or-

yValues is null.

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

See Also