Polynomial.Get Interpolating Polynomial Method
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Get | Constructs the interpolating polynomial through a set of points. |
Get | |
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(ReadOnlySpan<Double>, ReadOnlySpan<Double>)
public static Polynomial GetInterpolatingPolynomial(
ReadOnlySpan<double> xValues,
ReadOnlySpan<double> yValues
)
Parameters
- xValues ReadOnlySpan<Double>
- yValues ReadOnlySpan<Double>
Return Value
PolynomialGetInterpolatingPolynomial(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. |