Polynomial.GetInterpolatingPolynomial Method

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

GetInterpolatingPolynomial(Double[], Double[]) Constructs the interpolating polynomial through a set of points.
GetInterpolatingPolynomial(Vector<Double>, Vector<Double>) Constructs the interpolating polynomial through a set of points.

GetInterpolatingPolynomial(Double[], Double[])

Constructs the interpolating polynomial through a set of points.
C#
public static Polynomial GetInterpolatingPolynomial(
	double[] xValues,
	double[] yValues
)

Parameters

xValues  Double[]
A Double array containing the x-coordinates of the interpolation points. The elements of this array must be distinct.
yValues  Double[]
A Double array containing the y-coordinates of the interpolation points.

Return Value

Polynomial
The interpolating Polynomial for the specified points.

Exceptions

ArgumentNullExceptionxValues is null.

-or-

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

GetInterpolatingPolynomial(Vector<Double>, Vector<Double>)

Constructs the interpolating polynomial through a set of points.
C#
public static Polynomial GetInterpolatingPolynomial(
	Vector<double> xValues,
	Vector<double> yValues
)

Parameters

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

Return Value

Polynomial
The interpolating Polynomial for the specified points.

Exceptions

ArgumentNullExceptionxValues is null.

-or-

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

See Also