BarycentricSeries.GetPolynomialInterpolator Method

Definition

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

Overload List

GetPolynomialInterpolator(Double[], Double[]) Constructs the Lagrange interpolating polynomial through a set of points in barycentric form.
GetPolynomialInterpolator(Vector<Double>, Vector<Double>) Constructs the Lagrange interpolating polynomial through a set of points in barycentric form.

GetPolynomialInterpolator(Double[], Double[])

Constructs the Lagrange interpolating polynomial through a set of points in barycentric form.
C#
public static BarycentricSeries GetPolynomialInterpolator(
	double[] xValues,
	double[] yValues
)

Parameters

xValues  Double[]
The x-coordinates of the interpolation points.
yValues  Double[]
The y-coordinates of the interpolation points.

Return Value

BarycentricSeries
A BarycentricSeries that represents the Lagrange interpolating polynomial.

Exceptions

ArgumentNullExceptionxValues or yValues is null.
DimensionMismatchException The lengths of xValues and yValues do not match.

GetPolynomialInterpolator(Vector<Double>, Vector<Double>)

Constructs the Lagrange interpolating polynomial through a set of points in barycentric form.
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

ArgumentNullException

xValues is null.

-or-

yValues is null.

DimensionMismatchException

The arrays xValues and yValues have different lengths.

See Also