| InterpolationHelperPolynomialInterpolation Method (IListVector2F, Single, Single) |
Computes the function value for x using polynomial interpolation
(single-precision).
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static float PolynomialInterpolation(
IList<Vector2F> points,
float x,
out float error
)
Public Shared Function PolynomialInterpolation (
points As IList(Of Vector2F),
x As Single,
<OutAttribute> ByRef error As Single
) As Single
public:
static float PolynomialInterpolation(
IList<Vector2F>^ points,
float x,
[OutAttribute] float% error
)
static member PolynomialInterpolation :
points : IList<Vector2F> *
x : float32 *
error : float32 byref -> float32
Parameters
- points
- Type: System.Collections.GenericIListVector2F
The points. - x
- Type: SystemSingle
The x value. - error
- Type: SystemSingle
The error estimate.
Return Value
Type:
SingleThe 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