aimstil
5.0.5
|
Interpolation using Lagrange polynomials of order 4. More...
#include <til/LagrangeInterpolation.h>
Static Public Member Functions | |
static T | compute (T f1, T f2, T f3, T f4, T x) |
Returns the interpolated value of four numbers using Lagrange4 method. More... | |
Interpolation using Lagrange polynomials of order 4.
Computes the Lagrange interpolation of the sequence (f1, f2, f3, f4) (supposed to be equally spaced and at position (-1, 0, 1, 2)). 'x' is the position of the point where we want an interpolated value, and has to be in the range [0, 1]. The Lagrange polynomial is the only third order polynomial fitting all four points.
Definition at line 22 of file LagrangeInterpolation.h.
|
inlinestatic |
Returns the interpolated value of four numbers using Lagrange4 method.
f1 | Value assumed to lie at position -1 |
f2 | Value assumed to lie at position 0 |
f3 | Value assumed to lie at position 1 |
f4 | Value assumed to lie at position 2 |
x | The interpolated value at position x |
Definition at line 32 of file LagrangeInterpolation.h.