CubicSpline.CreateMonotonic Method

Definition

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

Overload List

CreateMonotonic(IList<Point>) Constructs a cubic spline through a set of points that preserves monotonicity.
CreateMonotonic(IList<Double>, IList<Double>) Constructs a cubic spline through a set of points that preserves monotonicity.

CreateMonotonic(IList<Point>)

Constructs a cubic spline through a set of points that preserves monotonicity.
C#
public static CubicSpline CreateMonotonic(
	IList<Point> dataPoints
)

Parameters

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

Return Value

CubicSpline

Remarks

This constructor constructs a cubic spline where the function is monotonically increasing or decreasing on each interval.

The algorithm used is by Fritsch and Butland.

Exceptions

ArgumentNullException

dataPoints is null.

CreateMonotonic(IList<Double>, IList<Double>)

Constructs a cubic spline through a set of points that preserves monotonicity.
C#
public static CubicSpline CreateMonotonic(
	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 cubic spline where the function is monotonically increasing or decreasing on each interval.

The algorithm used is by Fritsch and Butland.

Exceptions

ArgumentNullException

xValues is null.

-or-

yValues is null.

DimensionMismatchException

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

See Also