Cubic Spline.Create Smooth Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Create | Constructs a smoothing spline for a set of points with specified smoothing parameter. |
Create | Constructs a smoothing spline for a set of points with specified smoothing parameter and weights for the data points. |
Create | Constructs a smoothing spline for a set of points with specified smoothing parameter. |
Create | Constructs a smoothing spline for a set of points with specified smoothing parameter and weights for the data points. |
CreateSmooth(IList<Point>, Double)
public static CubicSpline CreateSmooth(
IList<Point> dataPoints,
double smoothingParameter
)
Parameters
- dataPoints IList<Point>
- An list of Point values containing the data points.
- smoothingParameter Double
- The smoothing parameter, with values between 0 (least squares horizontal line) and 1 (natural interpolating spline).
Return Value
CubicSplineRemarks
This constructor constructs a smoothing spline which in general does not interpolate the data points but is more smooth.
Exceptions
Argument | dataPoints is null. |
CreateSmooth(IList<Point>, Double, IList<Double>)
public static CubicSpline CreateSmooth(
IList<Point> dataPoints,
double smoothingParameter,
IList<double> weights
)
Parameters
- dataPoints IList<Point>
- An list of Point values containing the data points.
- smoothingParameter Double
- The smoothing parameter, with values between 0 (least squares horizontal line) and 1 (natural interpolating spline).
- weights IList<Double>
- A Double list containing the weights for the data points.
Return Value
CubicSplineRemarks
This constructor constructs a smoothing spline which in general does not interpolate the data points but is more smooth.
Exceptions
Argument | dataPoints is null. |
CreateSmooth(IList<Double>, IList<Double>, Double)
public static CubicSpline CreateSmooth(
IList<double> xValues,
IList<double> yValues,
double smoothingParameter
)
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.
- smoothingParameter Double
- The smoothing parameter, with values between 0 (least squares horizontal line) and 1 (natural interpolating spline).
Return Value
CubicSplineRemarks
This constructor constructs a smoothing spline which in general does not interpolate the data points but is more smooth.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of xValues. |
CreateSmooth(IList<Double>, IList<Double>, Double, IList<Double>)
public static CubicSpline CreateSmooth(
IList<double> xValues,
IList<double> yValues,
double smoothingParameter,
IList<double> weights
)
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.
- smoothingParameter Double
- The smoothing parameter, with values between 0 (least squares horizontal line) and 1 (natural interpolating spline).
- weights IList<Double>
- A Double list containing the weights for the data points.
Return Value
CubicSplineRemarks
This constructor constructs a smoothing spline which in general does not interpolate the data points but is more smooth.
Exceptions
Argument | xValues is null. -or- yValues is null. -or- weights is null. |
Dimension | The length of yValues does not equal the length of xValues. -or- The length of weights does not equal the length of xValues. |