CubicSpline.CreateHermiteInterpolant Method

Definition

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

Overload List

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

CreateHermiteInterpolant(IList<Point>, IList<Double>)

Constructs the cubic Hermite spline through a set of points.
C#
public static CubicSpline CreateHermiteInterpolant(
	IList<Point> dataPoints,
	IList<double> yPrimeValues
)

Parameters

dataPoints  IList<Point>
An list of Point values containing the data points.
yPrimeValues  IList<Double>
A Double list containing the slopes of the curve corresponding to the values in dataPoints.

Return Value

CubicSpline

Remarks

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

Exceptions

ArgumentNullException

dataPoints is null.

-or-

yPrimeValues is null.

CreateHermiteInterpolant(IList<Double>, IList<Double>, IList<Double>)

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

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.
yPrimeValues  IList<Double>
A Double list containing the slopes of the curve corresponding to the values in xValues.

Return Value

CubicSpline

Exceptions

ArgumentNullExceptionxValues is null.

-or-

yValues is null.

-or-

yPrimeValues is null.

DimensionMismatchException

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

-or-

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

See Also