BarycentricBasis Constructor

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

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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