Polynomial<T>.GetInterpolatingPolynomial Method

Definition

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

Overload List

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

GetInterpolatingPolynomial(T[], T[])

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

Parameters

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

Return Value

Polynomial<T>
The interpolating Polynomial<T> for the specified points.

Exceptions

ArgumentNullExceptionxValues is null.

-or-

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

GetInterpolatingPolynomial(Vector<T>, Vector<T>)

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

Parameters

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

Return Value

Polynomial<T>
The interpolating Polynomial<T> for the specified points.

Exceptions

ArgumentNullExceptionxValues is null.

-or-

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

See Also