1 #ifndef LINEARINTERPOLATOR_HH
2 #define LINEARINTERPOLATOR_HH
50 double Evaluate(
const std::vector<double>& v)
const;
Performs the linear interpolation between discrete samples of a scalar field organised on an n-orthot...
Definition: LinearInterpolator.hh:16
~LinearInterpolator()
Destructor.
Definition: LinearInterpolator.cc:33
Data structure for a grid of points and their mapping onto a scalar field.
Definition: Grid.hh:19
LinearInterpolator & operator=(const LinearInterpolator &lint)
Equality operator.
Definition: LinearInterpolator.cc:23
LinearInterpolator()
Default constructor, initilizes everything to 0.
Definition: LinearInterpolator.cc:3
void Initialize(const Grid &grid)
Fit the 2^n vertices with an (n-1)-spline, store the parameters.
Definition: LinearInterpolator.cc:35
std::vector< double > _params
2^n-matrix vector
Definition: LinearInterpolator.hh:55
size_t _dim
Dimension of the space.
Definition: LinearInterpolator.hh:54
double operator()(const std::vector< double > &v) const
Function operator, executes evaluate.
Definition: LinearInterpolator.hh:33
double Evaluate(const std::vector< double > &v) const
Performs the linear interpolation at an n-point P.
Definition: LinearInterpolator.cc:74