BarycentricBasis Constructor

Constructs a new barycentric basis with the specified set of support points and corresponding weights.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public BarycentricBasis(
	Vector<double> supportPoints,
	Vector<double> weights
)

Parameters

supportPoints  Vector<Double>
A vector containing the support points of the basis. The points must be in ascending order.
weights  Vector<Double>
The vector containing the weight for each support point.

Exceptions

ArgumentNullException

supportPoints is null.

-or-

weights is null.

DimensionMismatchException

The length of weights does not equal the length of supportPoints.

ArgumentException

The elements of supportPoints are not in ascending order.

-or-

The length of supportPoints and weights is zero.

See Also