Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <GridInterpolation.h>
Public Member Functions | |
InterpN (const std::tuple< std::vector< AxisType >... > &grid, const NdArray::NdArray< double > &values, bool extrapolate) | |
~InterpN ()=default | |
double | operator() (AxisType... args) const |
Interpolate on a grid with arbitrary knot types (discrete or continuous)
AxisType | List of axes types. Their order corresponds to the order of the axes on the NdArray with the grid values. For instance, values.at(0,1,2) corresponds to the position on the grid defined by the knot 0 of the first axis, the knot 1 of the second axis, and the knot 2 of the third axis. |
Example of usage:
Definition at line 53 of file GridInterpolation.h.
Euclid::MathUtils::InterpN< AxisType >::InterpN | ( | const std::tuple< std::vector< AxisType >... > & | grid, |
const NdArray::NdArray< double > & | values, | ||
bool | extrapolate | ||
) |
Constructor
grid | Knots defining the grid |
values | Grid values |
extrapolate | If true, values will be extrapolated on continuous dimensions |
|
default |
Destructor
double Euclid::MathUtils::InterpN< AxisType >::operator() | ( | AxisType... | args | ) | const |
Interpolate the value for the given parameters