Polynomial<T>.Get Interpolating Polynomial Method
Definition
Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
Overload List
Get | Constructs the interpolating polynomial through a set of points. |
Get | Constructs the interpolating polynomial through a set of points. |
GetInterpolatingPolynomial(T[], T[])
Constructs the interpolating polynomial through a
set of points.
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
Argument | xValues is null.
-or- yValues is null. |
Dimension | The arrays xValues and yValues have different lengths. |
GetInterpolatingPolynomial(Vector<T>, Vector<T>)
Constructs the interpolating polynomial through a
set of points.
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
Argument | xValues is null.
-or- yValues is null. |
Dimension | The arrays xValues and yValues have different lengths. |