Performs the simplical interplation between n+1 discrete samples in n dimensions.
More...
#include <SimplexInterpolator.hh>
|
| std::vector< double > | _params |
| | (n+1)-vector of fitting parameters More...
|
| |
Performs the simplical interplation between n+1 discrete samples in n dimensions.
| SimplexInterpolator::SimplexInterpolator |
( |
| ) |
|
Default constructor, initilizes everything to 0.
| SimplexInterpolator::SimplexInterpolator |
( |
const std::vector< Vertex > & |
vertices | ) |
|
Normal constructor, sets the vector of vertices and their mapping.
- Parameters
-
| vertices | n+1 simplex n-vertices |
| SimplexInterpolator::~SimplexInterpolator |
( |
| ) |
|
| double SimplexInterpolator::Evaluate |
( |
const std::vector< double > & |
v | ) |
const |
Performs the simplex interpolation at an n-point v.
- Parameters
-
| v | n-vector of coordinates of the n-point |
- Returns
- Interpolated value of the function in v
| void SimplexInterpolator::Initialize |
( |
const std::vector< Vertex > & |
vertices | ) |
|
Fit the n+1 vertices with a hyperplane, store the parameters.
- Parameters
-
| vertices | n+1 simplex n-points |
- Returns
- True if successful
| double SimplexInterpolator::operator() |
( |
const std::vector< double > & |
v | ) |
const |
|
inline |
Function operator, executes evaluate.
| std::vector<double> SimplexInterpolator::_params |
|
private |
(n+1)-vector of fitting parameters
The documentation for this class was generated from the following files: