Piecewise Linear Curve Constructor
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Piecewise | Constructs a new PiecewiseLinearCurve object. |
Piecewise |
Constructs a new PiecewiseLinearCurve object.
Obsolete. |
Piecewise | Constructs a new PiecewiseLinearCurve object. |
Piecewise | Constructs a new PiecewiseLinearCurve object. |
PiecewiseLinearCurve(Point[])
Constructs a new PiecewiseLinearCurve object.
public PiecewiseLinearCurve(
Point[] dataPoints
)
Parameters
Exceptions
Argument | dataPoints is null. |
PiecewiseLinearCurve(Double[], Double[])
Constructs a new PiecewiseLinearCurve object.
[ObsoleteAttribute("Use the constructor that uses spans instead.")]
public PiecewiseLinearCurve(
double[] xValues,
double[] yValues
)
Parameters
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
PiecewiseLinearCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>)
Constructs a new PiecewiseLinearCurve object.
public PiecewiseLinearCurve(
ReadOnlySpan<double> xValues,
ReadOnlySpan<double> yValues
)
Parameters
- xValues ReadOnlySpan<Double>
- A span containing the boundaries of the intervals.
- yValues ReadOnlySpan<Double>
- A span containing y-values corresponding to the values in xValues.
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |
PiecewiseLinearCurve(Vector<Double>, Vector<Double>)
Constructs a new PiecewiseLinearCurve object.
public PiecewiseLinearCurve(
Vector<double> xValues,
Vector<double> yValues
)
Parameters
Exceptions
Argument | xValues is null. -or- yValues is null. |
Dimension | The length of xValues does not equal the length of yValues. |