Polynomial.GetInterpolatingPolynomial Method

Definition

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

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

ArgumentNullException

xValues 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

ArgumentNullException

xValues is null.

-or-

yValues is null.

DimensionMismatchException

The arrays xValues and yValues have different lengths.

See Also