Cubic Spline Constructor
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Cubic | Constructs the natural cubic spline through a set of points. |
Cubic |
Constructs the natural cubic spline through a set of points.
Obsolete. |
Cubic | Constructs the natural cubic spline through a set of points. |
Cubic | Constructs the cubic Hermite spline through a set of points. |
Cubic | Constructs the natural cubic spline through a set of points. |
Cubic | Constructs a natural or Akima cubic spline through a set of points. |
Cubic | Constructs the cubic Hermite spline through a set of points. |
Cubic | Constructs a cubic smoothing spline with the specified smoothing parameter. |
Cubic | Constructs a clamped cubic spline through a set of points. |
Cubic | Constructs the natural cubic spline through a set of points. |
Cubic | Constructs the cubic Hermite spline through a set of points. |
Cubic | Constructs a clamped cubic spline through a set of points. |
Cubic | Constructs a cubic smoothing spline with the specified smoothing parameter. |
Cubic | Constructs a clamped cubic spline through a set of points. |
CubicSpline(IList<Point>)
public CubicSpline(
IList<Point> dataPoints
)
Parameters
Remarks
This constructor 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. |
CubicSpline(Double[], Double[])
[ObsoleteAttribute("Use the constructor that uses spans instead.")]
public CubicSpline(
double[] xValues,
double[] yValues
)
Parameters
Remarks
This constructor constructs a natural cubic spline. This means that the second derivative of the curve at the end points is zero.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
CubicSpline(IList<Point>, CubicSplineKind)
public CubicSpline(
IList<Point> dataPoints,
CubicSplineKind kind
)
Parameters
- dataPoints IList<Point>
- An array of Point values containing the data points.
- kind CubicSplineKind
- A CubicSplineKind value that specifies the kind of spline to construct.
Remarks
This constructor constructs either a natural cubic spline or an Akima spline. Any other values for the kind parameter produce an InvalidOperationException.
Exceptions
Argument | dataPoints is null. |
CubicSpline(IList<Point>, IList<Double>)
public CubicSpline(
IList<Point> dataPoints,
IList<double> yPrimeValues
)
Parameters
Remarks
This constructor constructs a cubic Hermite spline which has the specified first derivatives at the data points.
Exceptions
Argument | dataPoints is null. -or- yPrimeValues is null. |
CubicSpline(IList<Double>, IList<Double>)
public CubicSpline(
IList<double> xValues,
IList<double> yValues
)
Parameters
Remarks
This constructor constructs a natural cubic spline. This means that the second derivative of the curve at the end points is zero.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
CubicSpline(Double[], Double[], CubicSplineKind)
public CubicSpline(
double[] xValues,
double[] yValues,
CubicSplineKind kind
)
Parameters
- xValues Double[]
- A Double array containing the x-values of the data points.
- yValues Double[]
- A Double array containing the y-values corresponding to the values in xValues.
- kind CubicSplineKind
- A CubicSplineKind value that specifies the kind of spline to construct.
Remarks
This constructor constructs either a natural cubic spline or an Akima spline. Any other values for the kind parameter produce an InvalidOperationException.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
CubicSpline(Double[], Double[], Double[])
public CubicSpline(
double[] xValues,
double[] yValues,
double[] yPrimeValues
)
Parameters
Exceptions
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. |
CubicSpline(IList<Point>, Double, IList<Double>)
public CubicSpline(
IList<Point> dataPoints,
double smoothingParameter,
IList<double> weights
)
Parameters
Remarks
This constructor 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- weights is null. |
Dimension | The length of dataPoints does not equal the length of weights. |
CubicSpline(IList<Point>, Double, Double)
public CubicSpline(
IList<Point> dataPoints,
double leftDerivative,
double rightDerivative
)
Parameters
CubicSpline(IList<Double>, IList<Double>, CubicSplineKind)
public CubicSpline(
IList<double> xValues,
IList<double> yValues,
CubicSplineKind kind
)
Parameters
- xValues IList<Double>
- A list of Double values that contain the x-values of the data points.
- yValues IList<Double>
- A list of Double values that contain the y-values corresponding to the values in xValues.
- kind CubicSplineKind
- A CubicSplineKind value that specifies the kind of spline to construct.
Remarks
This constructor constructs either a natural cubic spline or an Akima spline. Any other values for the kind parameter produce an InvalidOperationException.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
CubicSpline(IList<Double>, IList<Double>, IList<Double>)
public CubicSpline(
IList<double> xValues,
IList<double> yValues,
IList<double> yPrimeValues
)
Parameters
- xValues IList<Double>
- A list of Double values that contains the x-values of the data points.
- yValues IList<Double>
- A list of Double values that contains the y-values corresponding to the values in xValues.
- yPrimeValues IList<Double>
- A vector containing the slopes of the curve corresponding to the values in xValues.
Remarks
This constructor constructs a cubic Hermite spline which has the specified first derivatives at the data points.
Exceptions
Argument | xValues is null. -or- yValues 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. |
CubicSpline(Double[], Double[], Double, Double)
public CubicSpline(
double[] xValues,
double[] yValues,
double leftDerivative,
double rightDerivative
)
Parameters
- xValues Double[]
- A Double array containing the x-values of the data points.
- yValues Double[]
- A Double array 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.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
CubicSpline(IList<Double>, IList<Double>, Double, IList<Double>)
public CubicSpline(
IList<double> xValues,
IList<double> yValues,
double smoothingParameter,
IList<double> weights
)
Parameters
- xValues IList<Double>
- A list of Double values that contains the x-values of the data points.
- yValues IList<Double>
- A list of Double values that contains the y-values corresponding to the values in xValues.
- smoothingParameter Double
- The smoothing parameter.
- weights IList<Double>
- A vector containing the weights for the data points.
Remarks
This constructor constructs a natural cubic spline. This means that the second derivative of the curve at the end points is zero.
Exceptions
Argument | xValues is null. -or- yValues is null. -or- weights 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 weights. |
CubicSpline(IList<Double>, IList<Double>, Double, Double)
public CubicSpline(
IList<double> xValues,
IList<double> yValues,
double leftDerivative,
double rightDerivative
)
Parameters
- xValues IList<Double>
- A list of Double values that contains the x-values of the data points.
- yValues IList<Double>
- A list of Double values that contains 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.
Exceptions
Argument | xValues is null. -or- yValues is null. |