BarycentricSeries.GetPolynomialInterpolator Method

Constructs the Lagrange interpolating polynomial through a set of points in barycentric form.

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static BarycentricSeries GetPolynomialInterpolator(
	Vector<double> xValues,
	Vector<double> yValues
)

Parameters

xValues  Vector<Double>
A vector containing the x-coordinates of the interpolation points. The elements of this array must be distinct.
yValues  Vector<Double>
A vector containing the y-coordinates of the interpolation points.

Return Value

BarycentricSeries
A BarycentricSeries that represents the Lagrange interpolating polynomial through the points specified by xValues and yValues.

Exceptions

ArgumentNullExceptionxValues is null.

-or-

yValues is null.
DimensionMismatchException The arrays xValues and yValues have different lengths.

See Also