queso-0.53.0
|
Class to accommodate arrays of one-dimensional grid. More...
#include <ArrayOfOneDGrids.h>
Public Member Functions | |
Constructor/Destructor methods | |
ArrayOfOneDGrids (const char *prefix, const VectorSpace< V, M > &rowSpace) | |
Default constructor. More... | |
~ArrayOfOneDGrids () | |
Destructor. More... | |
Property methods | |
const VectorSpace< V, M > & | rowSpace () const |
Returns the (vector) space to which the row belongs to. More... | |
const V & | sizes () const |
Returns an array with the sizes of the grids. More... | |
const V & | minPositions () const |
Returns an array with the minimum position of each grid. More... | |
const V & | maxPositions () const |
Returns an array with the maximum position of each grid. More... | |
Math methods | |
void | setUniformGrids (const V &sizesVec, const V &minPositionsVec, const V &maxPositionsVec) |
Sets an array of uniform grids. More... | |
Accessor methods | |
const BaseOneDGrid< double > & | grid (unsigned int rowId) const |
Returns the grid stored in the rowId -th position of the array of grids. More... | |
Private Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSpace< V, M > & | m_rowSpace |
DistArray< BaseOneDGrid < double > * > | m_oneDGrids |
V * | m_sizes |
V * | m_minPositions |
V * | m_maxPositions |
I/O methods | |
void | print (std::ostream &os) const |
Prints the values of the array of grids (points). More... | |
std::ostream & | operator<< (std::ostream &os, const ArrayOfOneDGrids< V, M > &obj) |
Class to accommodate arrays of one-dimensional grid.
Arrays of one-dimensional grids are necessary in the calculation, for instance, of CDFs and MDF of vector functions (refer to BaseVectorCdf, BaseVectorMdf, and derived classes).
Definition at line 47 of file ArrayOfOneDGrids.h.
QUESO::ArrayOfOneDGrids< V, M >::ArrayOfOneDGrids | ( | const char * | prefix, |
const VectorSpace< V, M > & | rowSpace | ||
) |
Default constructor.
Definition at line 35 of file ArrayOfOneDGrids.C.
References QUESO::ArrayOfOneDGrids< V, M >::m_oneDGrids.
QUESO::ArrayOfOneDGrids< V, M >::~ArrayOfOneDGrids | ( | ) |
Destructor.
Definition at line 54 of file ArrayOfOneDGrids.C.
const BaseOneDGrid< double > & QUESO::ArrayOfOneDGrids< V, M >::grid | ( | unsigned int | rowId | ) | const |
Returns the grid stored in the rowId
-th position of the array of grids.
Definition at line 131 of file ArrayOfOneDGrids.C.
References queso_require_less_msg.
Referenced by QUESO::SampledVectorCdf< V, M >::SampledVectorCdf().
const V & QUESO::ArrayOfOneDGrids< V, M >::maxPositions | ( | ) | const |
Returns an array with the maximum position of each grid.
Definition at line 93 of file ArrayOfOneDGrids.C.
References queso_require_msg.
const V & QUESO::ArrayOfOneDGrids< V, M >::minPositions | ( | ) | const |
Returns an array with the minimum position of each grid.
Definition at line 84 of file ArrayOfOneDGrids.C.
References queso_require_msg.
void QUESO::ArrayOfOneDGrids< V, M >::print | ( | std::ostream & | os | ) | const |
Prints the values of the array of grids (points).
Definition at line 142 of file ArrayOfOneDGrids.C.
References QUESO::ArrayOfOneDGrids< V, M >::m_oneDGrids.
const VectorSpace< V, M > & QUESO::ArrayOfOneDGrids< V, M >::rowSpace | ( | ) | const |
Returns the (vector) space to which the row belongs to.
Definition at line 68 of file ArrayOfOneDGrids.C.
void QUESO::ArrayOfOneDGrids< V, M >::setUniformGrids | ( | const V & | sizesVec, |
const V & | minPositionsVec, | ||
const V & | maxPositionsVec | ||
) |
Sets an array of uniform grids.
Definition at line 102 of file ArrayOfOneDGrids.C.
Referenced by QUESO::SequenceOfVectors< V, M >::subUniformlySampledCdf(), and QUESO::SequenceOfVectors< V, M >::unifiedUniformlySampledCdf().
const V & QUESO::ArrayOfOneDGrids< V, M >::sizes | ( | ) | const |
Returns an array with the sizes of the grids.
Definition at line 75 of file ArrayOfOneDGrids.C.
References queso_require_msg.
|
friend |
Definition at line 95 of file ArrayOfOneDGrids.h.
|
private |
Definition at line 104 of file ArrayOfOneDGrids.h.
|
private |
Definition at line 111 of file ArrayOfOneDGrids.h.
|
private |
Definition at line 110 of file ArrayOfOneDGrids.h.
|
private |
Definition at line 107 of file ArrayOfOneDGrids.h.
Referenced by QUESO::ArrayOfOneDGrids< V, M >::ArrayOfOneDGrids(), and QUESO::ArrayOfOneDGrids< V, M >::print().
|
private |
Definition at line 105 of file ArrayOfOneDGrids.h.
|
private |
Definition at line 106 of file ArrayOfOneDGrids.h.
|
private |
Definition at line 109 of file ArrayOfOneDGrids.h.