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