BarycentricBasis.Polynomial Method

Definition

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

Overload List

Polynomial(Vector<Double>) Constructs a new barycentric basis equivalent to Lagrange polynomial interpolation through the specified support points.
Polynomial(Double, Double, Int32) Returns a new BarycentricBasis equivalent to a basis of Lagrange polynomials over an equidistant set of points.

Polynomial(Vector<Double>)

Constructs a new barycentric basis equivalent to Lagrange polynomial interpolation through the specified support points.
C#
public static BarycentricBasis Polynomial(
	Vector<double> supportPoints
)

Parameters

supportPoints  Vector<Double>
A vector containing the support points of the Lagrange polynomial.

Return Value

BarycentricBasis
A barycentric basis.

Polynomial(Double, Double, Int32)

Returns a new BarycentricBasis equivalent to a basis of Lagrange polynomials over an equidistant set of points.
C#
public static BarycentricBasis Polynomial(
	double lowerBound,
	double upperBound,
	int length
)

Parameters

lowerBound  Double
The lower bound of the interval.
upperBound  Double
The upper bound of the interval.
length  Int32
The number of points.

Return Value

BarycentricBasis

Remarks

If length is one, then the basis consists of a constant term at the centre of the interval.

Exceptions

ArgumentOutOfRangeException

length is less than or equal to zero.

See Also