1 #ifndef INTERPOLATOR_HH
2 #define INTERPOLATOR_HH
12 #include "LinearInterpolator.hh"
13 #include "SimplexInterpolator.hh"
14 #include "Delaunay.hh"
35 const std::string algo=
"linear");
45 const std::string algo=
"simplex");
78 double Evaluate(
const std::vector<double>& v)
const;
84 double Evaluate(
const double& v)
const;
90 double Evaluate(
const double* v)
const;
105 std::vector<TPolyLine*>
Meshing()
const;
double operator()(const double &v) const
Overloaded function operator, calls Evaluate.
Definition: Interpolator.hh:63
Delaunay _del
Delaunary triangulation of the N vertices.
Definition: Interpolator.hh:112
bool _ex
Extrapolation switch.
Definition: Interpolator.hh:113
size_t _dim
Dimension of the space the interpolator lives in.
Definition: Interpolator.hh:109
Data structure for a grid of points and their mapping onto a scalar field.
Definition: Grid.hh:19
const Delaunay & GetTesselation() const
Returns the tesselation on which the interpolator is built.
Definition: Interpolator.hh:99
const size_t & GetDimension() const
Returns the dimension of the space in which the interpolator lives.
Definition: Interpolator.hh:93
std::vector< TPolyLine * > Meshing() const
Returns the meshing, used to build the interpolation, as polygons.
Definition: Interpolator.cc:93
~Interpolator()
Destructor.
Definition: Interpolator.cc:37
Interpolator & operator=(const Interpolator &inter)
Equality operator.
Definition: Interpolator.cc:24
Computes the Delaunay triangulation of a set of points.
Definition: Delaunay.hh:40
Interpolates between discrete samples of a scalar field.
Definition: Interpolator.hh:22
double operator()(const std::vector< double > &v) const
Overloaded function operator, calls Evaluate.
Definition: Interpolator.hh:57
std::string _algo
Algorithm to use for the interpolation.
Definition: Interpolator.hh:110
double Evaluate(const std::vector< double > &v) const
Performs the interpolation at an n-point v.
Definition: Interpolator.cc:39
double operator()(const double *v) const
Overloaded function operator, calls Evaluate.
Definition: Interpolator.hh:69
Grid _grid
Grid of N vertices and their mapping.
Definition: Interpolator.hh:111
const Grid & GetGrid() const
Returns the grid on which the interpolator is built.
Definition: Interpolator.hh:96
Interpolator()
Default constructor, initilizes everything to 0.
Definition: Interpolator.cc:3