PiecewiseConstantCurve Constructor

Definition

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

Overload List

PiecewiseConstantCurve(Point[])

Constructs a new PiecewiseConstantCurve object.
C#
public PiecewiseConstantCurve(
	Point[] dataPoints
)

Parameters

dataPoints  Point[]
An array of Point structures containing the data points.

PiecewiseConstantCurve(Double[], Double[])

Initializes a new instance of the PiecewiseConstantCurve class
C#
public PiecewiseConstantCurve(
	double[] xValues,
	double[] yValues
)

Parameters

xValues  Double[]
 
yValues  Double[]
 

PiecewiseConstantCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>)

Constructs a new PiecewiseConstantCurve object.
C#
public PiecewiseConstantCurve(
	ReadOnlySpan<double> xValues,
	ReadOnlySpan<double> yValues
)

Parameters

xValues  ReadOnlySpan<Double>
A vector containing the boundaries of the intervals.
yValues  ReadOnlySpan<Double>
A vector containing y-values corresponding to the values in xValues.

PiecewiseConstantCurve(Vector<Double>, Vector<Double>)

Constructs a new PiecewiseConstantCurve object.
C#
public PiecewiseConstantCurve(
	Vector<double> xValues,
	Vector<double> yValues
)

Parameters

xValues  Vector<Double>
A vector containing the boundaries of the intervals.
yValues  Vector<Double>
A vector containing y-values corresponding to the values in xValues.

See Also