queso-0.53.0
|
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 (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 44 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::BoxSubset< V, M >::m_maxValues, QUESO::BoxSubset< V, M >::m_minValues, QUESO::VectorSubset< V, M >::m_vectorSpace, QUESO::VectorSet< V, M >::m_volume, queso_require_equal_to_msg, and queso_require_less_equal_msg.
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 62 of file BoxSubset.C.
const V & QUESO::BoxSubset< V, M >::maxValues | ( | ) | const |
Vector of the maximum values of the box subset.
Definition at line 79 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::UniformVectorRealizer< V, M >::realization(), QUESO::JeffreysVectorRealizer< 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 73 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::UniformVectorRealizer< V, M >::realization(), QUESO::JeffreysVectorRealizer< 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 86 of file BoxSubset.C.
|
protected |
Vector of templated type V
to store the maximum values of the box subset class.
Definition at line 89 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 86 of file BoxSubset.h.
Referenced by QUESO::BoxSubset< V, M >::BoxSubset().