Templated class to store data of type double or CumulativeValue in multi-dimensional space.
More...
|
| OutputData (const OutputData &)=delete |
|
| OutputData (OutputData &&) |
|
void | addAxis (const IAxis &new_axis) |
|
void | addAxis (const std::string &name, size_t size, double start, double end) |
|
void | allocate () |
| memory allocation for current dimensions configuration
|
|
const IAxis & | axis (size_t serial_number) const |
| returns axis with given serial number
|
|
iterator | begin () |
| Returns read/write iterator that points to the first element.
|
|
const_iterator | begin () const |
| Returns read-only iterator that points to the first element.
|
|
void | clear () |
| Sets object into initial state (no dimensions, data)
|
|
OutputData * | clone () const |
|
void | copyFrom (const OutputData< T > &x) |
|
template<class U > |
void | copyShapeFrom (const OutputData< U > &other) |
|
iterator | end () |
| Returns read/write iterator that points to the one past last element.
|
|
const_iterator | end () const |
| Returns read-only iterator that points to the one past last element.
|
|
size_t | findGlobalIndex (const std::vector< double > &coordinates) const |
| Returns global index for specified axes values. More...
|
|
size_t | getAllocatedSize () const |
| Returns total size of data buffer (product of bin number in every dimension).
|
|
std::vector< size_t > | getAllSizes () const |
| Returns all sizes of its axes.
|
|
PyObject * | getArray () const |
| returns data as Python numpy array
|
|
std::vector< int > | getAxesBinIndices (size_t global_index) const |
| Returns vector of axes indices for given global index. More...
|
|
std::vector< double > | getAxesValues (size_t global_index) const |
| Returns values on all defined axes for given globalbin number. More...
|
|
Bin1D | getAxisBin (size_t global_index, const std::string &axis_name) const |
| Returns bin of selected axis for given global_index. More...
|
|
Bin1D | getAxisBin (size_t global_index, size_t i_selected_axis) const |
| Returns bin of selected axis for given global_index. More...
|
|
size_t | getAxisBinIndex (size_t global_index, const std::string &axis_name) const |
| Returns axis bin index for given global index. More...
|
|
size_t | getAxisBinIndex (size_t global_index, size_t i_selected_axis) const |
| Returns axis bin index for given global index. More...
|
|
double | getAxisValue (size_t global_index, const std::string &axis_name) const |
| Returns the value of selected axis for given global_index. More...
|
|
double | getAxisValue (size_t global_index, size_t i_selected_axis) const |
| Returns the value of selected axis for given global_index. More...
|
|
std::vector< T > | getRawDataVector () const |
| Returns copy of raw data vector.
|
|
double | getValue (size_t index) const |
|
double | getValue (size_t index) const |
| Returns value or summed value, depending on T.
|
|
template<class U > |
bool | hasSameDimensions (const OutputData< U > &right) const |
| Returns true if object have same dimensions and number of axes bins. More...
|
|
template<class U > |
bool | hasSameShape (const OutputData< U > &right) const |
| Returns true if objects a) have same dimensions b) bin boundaries of axes coincide. More...
|
|
bool | isInitialized () const |
| returns true if object is correctly initialized
|
|
OutputData< double > * | meanValues () const |
|
const OutputData< T > & | operator*= (const OutputData< T > &right) |
| multiplication-assignment operator for two output data
|
|
const OutputData< T > & | operator+= (const OutputData< T > &right) |
| addition-assignment operator for two output data
|
|
const OutputData< T > & | operator-= (const OutputData< T > &right) |
| substraction-assignment operator for two output data
|
|
const OutputData< T > & | operator/= (const OutputData< T > &right) |
| division-assignment operator for two output data
|
|
const OutputData & | operator= (const OutputData &)=delete |
|
T & | operator[] (size_t index) |
| indexed accessor
|
|
const T & | operator[] (size_t index) const |
| indexed accessor (const)
|
|
size_t | rank () const |
| Returns number of dimensions.
|
|
void | scaleAll (const T &factor) |
| multiply every item of this output data by value
|
|
void | setAllTo (const T &value) |
| Sets content of output data to specific value.
|
|
void | setAxisSizes (size_t rank, int *n_dims) |
| Adds 'rank' axes with indicated sizes.
|
|
void | setRawDataArray (const T *source) |
| Sets new values to raw data array.
|
|
void | setRawDataVector (const std::vector< T > &data_vector) |
| Sets new values to raw data vector.
|
|
size_t | toGlobalIndex (const std::vector< unsigned > &axes_indices) const |
| Returns global index for specified indices of axes. More...
|
|
T | totalSum () const |
| Returns sum of all values in the data structure.
|
|
template<class T>
class OutputData< T >
Templated class to store data of type double or CumulativeValue in multi-dimensional space.