Polynomial.Get Interpolating Polynomial Method
Definition
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |