Performs the linear interpolation between discrete samples of a scalar field organised on an n-orthotope.
More...
#include <LinearInterpolator.hh>
Performs the linear interpolation between discrete samples of a scalar field organised on an n-orthotope.
| LinearInterpolator::LinearInterpolator |
( |
| ) |
|
Default constructor, initilizes everything to 0.
| LinearInterpolator::LinearInterpolator |
( |
const Grid & |
grid | ) |
|
Normal constructor, sets matrix of vertices and their mapping.
- Parameters
-
| grid | 2^n vertices of an n-orthotope |
| LinearInterpolator::~LinearInterpolator |
( |
| ) |
|
| double LinearInterpolator::Evaluate |
( |
const std::vector< double > & |
v | ) |
const |
Performs the linear interpolation at an n-point P.
- Parameters
-
| v | Vector of coordinates of the n-point |
- Returns
- Interpolated value of the function in P
| void LinearInterpolator::Initialize |
( |
const Grid & |
grid | ) |
|
Fit the 2^n vertices with an (n-1)-spline, store the parameters.
- Returns
- True if successful
| double LinearInterpolator::operator() |
( |
const std::vector< double > & |
v | ) |
const |
|
inline |
Function operator, executes evaluate.
| size_t LinearInterpolator::_dim |
|
private |
| std::vector<double> LinearInterpolator::_params |
|
private |
The documentation for this class was generated from the following files: