PiecewiseCurve Constructor

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

PiecewiseCurve(Double[], Double[])

Note: This API is now obsolete.
Constructs a new PiecewiseCurve object.
C#
[ObsoleteAttribute("Use the constructor that uses spans instead.")]
protected PiecewiseCurve(
	double[] xValues,
	params double[] extra
)

Parameters

xValues  Double[]
A Double array containing the boundaries of the intervals.
extra  Double[]
A variable number of Double values that contains any additional parameters.

Exceptions

ArgumentNullException

xValues is null.

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

Constructs a new PiecewiseCurve object.
C#
protected PiecewiseCurve(
	IList<Point> dataPoints,
	IList<double> extra
)

Parameters

dataPoints  IList<Point>
An array of Point values containing the data points.
extra  IList<Double>
A variable number of Double values that contains any additional parameters.

Remarks

The xValues-values of the dataPoints values

PiecewiseCurve(IList<Point>, Double[])

Constructs a new PiecewiseCurve object.
C#
protected PiecewiseCurve(
	IList<Point> dataPoints,
	params double[] extra
)

Parameters

dataPoints  IList<Point>
An array of Point values containing the data points.
extra  Double[]
A variable number of Double values that contains any additional parameters.

Remarks

The xValues-values of the dataPoints values

PiecewiseCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>)

Constructs a new PiecewiseCurve object.
C#
protected PiecewiseCurve(
	ReadOnlySpan<double> xValues,
	ReadOnlySpan<double> extra
)

Parameters

xValues  ReadOnlySpan<Double>
A Double span containing the boundaries of the intervals.
extra  ReadOnlySpan<Double>
A Double span that contains any additional parameters.

PiecewiseCurve(Double[], Double[], Double[])

Note: This API is now obsolete.
Constructs a new PiecewiseCurve object.
C#
[ObsoleteAttribute("Use the constructor that uses spans instead.")]
protected PiecewiseCurve(
	double[] xValues,
	double[] yValues,
	params double[] extra
)

Parameters

xValues  Double[]
A Double array containing the boundaries of the intervals.
yValues  Double[]
A Double array containing the y-values corresponding to the values in xValues.
extra  Double[]
A variable number of Double values that contains any additional parameters.

Exceptions

ArgumentNullException

xValues is null.

-or-

yValues is null.

PiecewiseCurve(IList<Double>, IList<Double>, IList<Double>)

Constructs a new PiecewiseCurve object.
C#
protected PiecewiseCurve(
	IList<double> xValues,
	IList<double> yValues,
	IList<double> extra
)

Parameters

xValues  IList<Double>
A vector containing the boundaries of the intervals.
yValues  IList<Double>
A vector containing the y-values corresponding to the values in xValues.
extra  IList<Double>
A variable number of Double values that contains any additional parameters.

Exceptions

ArgumentNullException

xValues is null.

-or-

yValues is null.

PiecewiseCurve(IList<Double>, IList<Double>, Double[])

Constructs a new PiecewiseCurve object.
C#
protected PiecewiseCurve(
	IList<double> xValues,
	IList<double> yValues,
	params double[] extra
)

Parameters

xValues  IList<Double>
A vector containing the boundaries of the intervals.
yValues  IList<Double>
A vector containing the y-values corresponding to the values in xValues.
extra  Double[]
A variable number of Double values that contains any additional parameters.

Exceptions

ArgumentNullException

xValues is null.

-or-

yValues is null.

PiecewiseCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>, ReadOnlySpan<Double>)

Constructs a new PiecewiseCurve object.
C#
protected PiecewiseCurve(
	ReadOnlySpan<double> xValues,
	ReadOnlySpan<double> yValues,
	ReadOnlySpan<double> extra
)

Parameters

xValues  ReadOnlySpan<Double>
A Double span containing the boundaries of the intervals.
yValues  ReadOnlySpan<Double>
A Double span containing the y-values corresponding to the values in xValues.
extra  ReadOnlySpan<Double>
A Double span that contains any additional parameters.

Exceptions

DimensionMismatchException

xValues and yValues do not have the same length.

See Also