| InterpolationHelperPolynomialInterpolation Method (IListVector2D, Double, Double) |
Computes the function value for x using polynomial interpolation
(double-precision).
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static double PolynomialInterpolation(
IList<Vector2D> points,
double x,
out double error
)
Public Shared Function PolynomialInterpolation (
points As IList(Of Vector2D),
x As Double,
<OutAttribute> ByRef error As Double
) As Double
public:
static double PolynomialInterpolation(
IList<Vector2D>^ points,
double x,
[OutAttribute] double% error
)
static member PolynomialInterpolation :
points : IList<Vector2D> *
x : float *
error : float byref -> float
Parameters
- points
- Type: System.Collections.GenericIListVector2D
The points. - x
- Type: SystemDouble
The x value. - error
- Type: SystemDouble
The error estimate.
Return Value
Type:
DoubleThe interpolated value
y = P(x).
Exceptions Remarks
Through any N points there is a unique polynomial P(x) of order N-1.
This method constructs the interpolating polynomial through the given points using
Neville's algorithm. And computes the function value for the given function
argument x.
See Also