CepGen 1.2.5
Central exclusive processes event generator
|
A generic class for \(\mathbb{R}^D\mapsto\mathbb{R}^N\) grid interpolation. More...
#include <CepGen/Utils/GridHandler.h>
Public Types | |
typedef std::vector< double > | coord_t |
Coordinates container. | |
typedef std::array< double, N > | values_t |
Value(s) at a given coordinate. | |
Public Member Functions | |
GridHandler (const GridType &grid_type) | |
Build a grid interpolator from a grid type. | |
virtual | ~GridHandler ()=default |
values_t | eval (coord_t in_coords) const |
Interpolate a point to a given coordinate. | |
void | insert (coord_t coord, values_t value) |
Insert a new value in the grid. | |
std::map< coord_t, values_t > | values () const |
List of values in the grid. | |
void | initialise () |
Initialise the grid and all useful interpolators/accelerators. | |
std::array< Limits, D > | boundaries () const |
Grid boundaries (collection of (min,max)) | |
std::array< double, D > | min () const |
Lowest bound of the grid coordinates. | |
std::array< double, D > | max () const |
Highest bound of the grid coordinates. | |
Protected Attributes | |
const GridType | grid_type_ |
Type of interpolation for the grid members. | |
std::map< coord_t, values_t > | values_raw_ |
List of coordinates and associated value(s) in the grid Grid interpolation accelerator. | |
std::vector< std::unique_ptr< gsl_interp_accel, void(*)(gsl_interp_accel *)> > | accel_ |
std::vector< std::unique_ptr< gsl_spline, void(*)(gsl_spline *)> > | splines_1d_ |
Splines for linear interpolations. | |
std::array< coord_t, D > | coords_ |
Coordinates building up the grid. | |
std::array< std::unique_ptr< double[]>, N > | values_ |
Values for all points in the grid. | |
D | Number of variables in the grid (dimension) |
N | Number of values handled per point |
Definition at line 44 of file GridHandler.h.
typedef std::vector<double> coord_t |
Definition at line 46 of file GridHandler.h.
typedef std::array<double, N> values_t |
Definition at line 47 of file GridHandler.h.
|
explicit |
Definition at line 31 of file GridHandler.cpp.
|
virtualdefault |
std::array< Limits, D > boundaries |
Definition at line 268 of file GridHandler.cpp.
GridHandler< D, N >::values_t eval | ( | coord_t | in_coords | ) | const |
Definition at line 37 of file GridHandler.cpp.
void initialise |
Definition at line 150 of file GridHandler.cpp.
Definition at line 129 of file GridHandler.cpp.
std::array< double, D > max |
Definition at line 288 of file GridHandler.cpp.
std::array< double, D > min |
Definition at line 277 of file GridHandler.cpp.
Definition at line 56 of file GridHandler.h.
|
protected |
Definition at line 67 of file GridHandler.h.
|
protected |
Definition at line 73 of file GridHandler.h.
|
protected |
Definition at line 64 of file GridHandler.h.
|
protected |
Definition at line 68 of file GridHandler.h.
|
protected |
Definition at line 74 of file GridHandler.h.
Definition at line 65 of file GridHandler.h.