|
IFEM
90A354
|
Lagrange interpolation in one dimension. More...
#include <LagrangeInterpolator.h>

Public Member Functions | |
| LagrangeInterpolator (const std::vector< Real > &g) | |
| The constructor initializes the grid point array. | |
| Real | evaluate (Real x, size_t nr) const |
| Evaluate the interpolator at the specified point. | |
| Real | interpolate (Real x, const std::vector< Real > &data) const |
| Interpolates the given data at the specified point. | |
| utl::matrix< Real > | get (const std::vector< Real > &xg) const |
| Returns an interpolation matrix for a grid of data points. | |
Private Attributes | |
| std::vector< Real > | grid |
| Grid points. | |
Lagrange interpolation in one dimension.