IFEM  90A354
Public Member Functions | Private Attributes | List of all members
LagrangeInterpolator Class Reference

Lagrange interpolation in one dimension. More...

#include <LagrangeInterpolator.h>

Collaboration diagram for LagrangeInterpolator:
Collaboration graph
[legend]

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< Realget (const std::vector< Real > &xg) const
 Returns an interpolation matrix for a grid of data points.
 

Private Attributes

std::vector< Realgrid
 Grid points.
 

Detailed Description

Lagrange interpolation in one dimension.


The documentation for this class was generated from the following files: