|
queso-0.51.1
|
Class representing a subset of a vector space shaped like a hypercube. More...
#include <BoxSubset.h>


Public Member Functions | |
| void | print (std::ostream &os) const |
Prints the volume, the minimum and the maximum values of this. More... | |
Constructor/Destructor methods | |
| BoxSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, const V &minValues, const V &maxValues) | |
| Shaped, default constructor. More... | |
| ~BoxSubset () | |
| Destructor. More... | |
Mathematical methods. | |
| bool | contains (const V &vec) const |
Checks whether this box subset contains vector vec. More... | |
| const V & | minValues () const |
| Vector of the minimum values of the box subset. More... | |
| const V & | maxValues () const |
| Vector of the maximum values of the box subset. More... | |
Public Member Functions inherited from QUESO::VectorSubset< V, M > | |
| VectorSubset () | |
| Default Constructor. More... | |
| VectorSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume) | |
| Shaped constructor (with volume). More... | |
| virtual | ~VectorSubset () |
| Destructor. More... | |
| const VectorSpace< V, M > & | vectorSpace () const |
Vector space to which this set belongs to. See template specialization. More... | |
Public Member Functions inherited from QUESO::VectorSet< V, M > | |
| VectorSet () | |
| Default Constructor. More... | |
| VectorSet (const BaseEnvironment &env, const char *prefix, double volume) | |
| Shaped constructor. More... | |
| virtual | ~VectorSet () |
| Virtual destructor. More... | |
| const BaseEnvironment & | env () const |
| Environment. Access to private attribute m_env. More... | |
| const std::string & | prefix () const |
| Access to private attribute m_prefix. More... | |
| double | volume () const |
| Set volume; access to private attribute m_volume. More... | |
Protected Attributes | |
| V | m_minValues |
Vector of templated type V to store the minimum values of the box subset class. More... | |
| V | m_maxValues |
Vector of templated type V to store the maximum values of the box subset class. More... | |
Protected Attributes inherited from QUESO::VectorSubset< V, M > | |
| const VectorSpace< V, M > * | m_vectorSpace |
Protected Attributes inherited from QUESO::VectorSet< V, M > | |
| const BaseEnvironment & | m_env |
| std::string | m_prefix |
| double | m_volume |
Class representing a subset of a vector space shaped like a hypercube.
This class is determined by a collection of upper and lower limits of the hypercube. (line segment in
, rectangle in
, and so on).
Definition at line 41 of file BoxSubset.h.
| QUESO::BoxSubset< V, M >::BoxSubset | ( | const char * | prefix, |
| const VectorSpace< V, M > & | vectorSpace, | ||
| const V & | minValues, | ||
| const V & | maxValues | ||
| ) |
Shaped, default constructor.
Construct a subspace of vectorSpace, with min and max values given by the vectors minValues and maxValues, respectively. It checks for possible inconsistencies between the values stored in minValues and maxValues, and calculates the volume of the box subset, assigning it to m_volume.
Definition at line 34 of file BoxSubset.C.
References QUESO::VectorSpace< V, M >::dimLocal(), QUESO::VectorSet< V, M >::m_env, QUESO::BoxSubset< V, M >::m_maxValues, QUESO::BoxSubset< V, M >::m_minValues, QUESO::VectorSubset< V, M >::m_vectorSpace, QUESO::VectorSet< V, M >::m_volume, UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().
| QUESO::BoxSubset< V, M >::~BoxSubset | ( | ) |
|
virtual |
Checks whether this box subset contains vector vec.
It checks if both statements are true: 1) all components in vec are larger than m_minValues, and 2) all all components in vec are smaller than m_maxValues.
Implements QUESO::VectorSubset< V, M >.
Definition at line 71 of file BoxSubset.C.
| const V & QUESO::BoxSubset< V, M >::maxValues | ( | ) | const |
Vector of the maximum values of the box subset.
Definition at line 88 of file BoxSubset.C.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::BaseJointPdf< V, M >::commonComputeLogOfNormalizationFactor(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::InstantiateIntersection(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::JeffreysVectorRealizer< V, M >::realization(), QUESO::UniformVectorRealizer< V, M >::realization(), QUESO::GammaVectorRealizer< V, M >::realization(), and QUESO::MetropolisHastingsSG< P_V, P_M >::transformInitialCovMatrixToGaussianSpace().
| const V & QUESO::BoxSubset< V, M >::minValues | ( | ) | const |
Vector of the minimum values of the box subset.
Definition at line 82 of file BoxSubset.C.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::BaseJointPdf< V, M >::commonComputeLogOfNormalizationFactor(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::InstantiateIntersection(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::JeffreysVectorRealizer< V, M >::realization(), QUESO::UniformVectorRealizer< V, M >::realization(), QUESO::GammaVectorRealizer< V, M >::realization(), and QUESO::MetropolisHastingsSG< P_V, P_M >::transformInitialCovMatrixToGaussianSpace().
|
virtual |
Prints the volume, the minimum and the maximum values of this.
Reimplemented from QUESO::VectorSubset< V, M >.
Definition at line 95 of file BoxSubset.C.
|
protected |
Vector of templated type V to store the maximum values of the box subset class.
Definition at line 86 of file BoxSubset.h.
Referenced by QUESO::BoxSubset< V, M >::BoxSubset().
|
protected |
Vector of templated type V to store the minimum values of the box subset class.
Definition at line 83 of file BoxSubset.h.
Referenced by QUESO::BoxSubset< V, M >::BoxSubset().