Cubic Spline.Create Hermite Interpolant 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 the cubic Hermite spline through a set of points. |
Create | 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.
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
CubicSplineRemarks
This method constructs a natural cubic spline. This means that the second derivative of the curve at the end points is zero.
Exceptions
Argument | dataPoints is null. -or- yPrimeValues is null. |
CreateHermiteInterpolant(IList<Double>, IList<Double>, IList<Double>)
Constructs the cubic Hermite spline through a set of points.
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
CubicSplineExceptions
Argument | xValues is null. -or- yValues is null. -or- yPrimeValues is null. |
Dimension | The length of xValues does not equal the length of yValues. -or- The length of xValues does not equal the length of yPrimeValues. |