|
DP3
|
Map the cells of one axis to another. More...
#include <AxisMapping.h>
Public Member Functions | |
| AxisMapping (const Axis &from, const Axis &to) | |
| Create the mapping. More... | |
| const std::vector< int > & | getBorders () const |
| const double * | getScaledCenters () const |
| int | operator[] (int i) const |
| Get the to interval for the i-th from interval. More... | |
| size_t | size () const |
| Get the number of elements. More... | |
| typedef std::vector< int >::const_iterator | const_iterator |
| const_iterator | begin () const |
| const_iterator | end () const |
Map the cells of one axis to another.
This class defines the mapping of one axis to another. It is meant for mapping the grid axes of a predict to the axes of the domain grid, so it has to be calculated only once per predict.
| typedef std::vector<int>::const_iterator dp3::parmdb::AxisMapping::const_iterator |
Iterator to get the next interval.
|
inline |
|
inline |
|
inline |
Get the borders telling which from-cells map to the same to-cell. For example: borders (5,8,12) mean that from-cells 0-4 map to the same to-cell, and so do from-cells 5-7 and 8-11.
|
inline |
Get a pointer to the scaled center values. The center value of each interval in the from axis is scaled for its interval in the to axis.
|
inline |
Get the to interval for the i-th from interval.
|
inline |
Get the number of elements.