BarycentricSeries Constructor

Definition

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

Overload List

BarycentricSeries(BarycentricBasis, Vector<Double>) Constructs a new barycentric series.
BarycentricSeries(Double[], Double[], Double[]) Constructs a BarycentricSeries from arrays of support points, barycentric weights, and function values.

BarycentricSeries(BarycentricBasis, Vector<Double>)

Constructs a new barycentric series.
C#
public BarycentricSeries(
	BarycentricBasis basis,
	Vector<double> coefficients
)

Parameters

basis  BarycentricBasis
The basis that defines the support points and weights of the barycentric curve.
coefficients  Vector<Double>
A vector containing the values of the curve at the support points.

Exceptions

ArgumentNullException

basis is null.

-or-

coefficients is null.

DimensionMismatchException

The length of coefficients does not equal the size of the basis.

BarycentricSeries(Double[], Double[], Double[])

Constructs a BarycentricSeries from arrays of support points, barycentric weights, and function values.
C#
public BarycentricSeries(
	double[] xValues,
	double[] weights,
	double[] fValues
)

Parameters

xValues  Double[]
The support points (x-coordinates).
weights  Double[]
The barycentric weights.
fValues  Double[]
The function values at the support points.

Exceptions

ArgumentNullExceptionAny argument is null.
DimensionMismatchExceptionThe lengths of the arrays do not match.

See Also