queso-0.57.1
|
A templated class for handling sets. More...
#include <VectorSet.h>
Public Member Functions | |
Constructor/Destructor methods. | |
VectorSet (const BaseEnvironment &env, const char *prefix, double volume) | |
Shaped constructor. More... | |
virtual | ~VectorSet () |
Virtual destructor. More... | |
Environment methods | |
const BaseEnvironment & | env () const |
Environment. Access to private attribute m_env. More... | |
const std::string & | prefix () const |
Access to private attribute m_prefix. More... | |
Mathematical methods. | |
double | volume () const |
Set volume; access to private attribute m_volume. More... | |
virtual const VectorSpace< V, M > & | vectorSpace () const =0 |
Vector space to which this set belongs to. See template specialization. More... | |
virtual bool | contains (const V &vec) const =0 |
Checks whether a set contains vector vec . See template specialization. More... | |
virtual void | centroid (V &vec) const =0 |
Returns the set centroid in the vector vec . See template specialization. More... | |
virtual void | moments (M &mat) const =0 |
Returns the set moments of inertia in the matrix mat . See template specialization. More... | |
Protected Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
double | m_volume |
Private Member Functions | |
VectorSet () | |
Default Constructor. More... | |
I/O methods. | |
virtual void | print (std::ostream &os) const |
Prints nothing. More... | |
std::ostream & | operator<< (std::ostream &os, const VectorSet< V, M > &obj) |
A templated class for handling sets.
This class allows the mathematical definition of a scalar function such as: \( \pi: B \subset R^n \rightarrow R \), since it requires the specification of the domain \( B \), which is a subset of the vector space \( R^n \), which is itself a set.
Definition at line 52 of file VectorSet.h.
QUESO::VectorSet< V, M >::VectorSet | ( | const BaseEnvironment & | env, |
const char * | prefix, | ||
double | volume | ||
) |
Shaped constructor.
Creates a vector set given an environment, a identifying prefix and a volume.
Definition at line 44 of file VectorSet.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::VectorSet< V, M >::m_env, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
Virtual destructor.
Definition at line 63 of file VectorSet.C.
|
private |
|
pure virtual |
Returns the set centroid in the vector vec
. See template specialization.
Implemented in QUESO::VectorSpace< V, M >, QUESO::ConcatenationSubset< V, M >, QUESO::BoxSubset< V, M >, and QUESO::IntersectionSubset< V, M >.
|
pure virtual |
Checks whether a set contains vector vec
. See template specialization.
Implemented in QUESO::VectorSpace< V, M >, QUESO::ConcatenationSubset< V, M >, QUESO::VectorSubset< V, M >, QUESO::BoxSubset< V, M >, QUESO::IntersectionSubset< V, M >, and QUESO::DiscreteSubset< V, M >.
const BaseEnvironment & QUESO::VectorSet< V, M >::env | ( | ) | const |
|
pure virtual |
Returns the set moments of inertia in the matrix mat
. See template specialization.
Implemented in QUESO::VectorSpace< V, M >, QUESO::ConcatenationSubset< V, M >, QUESO::BoxSubset< V, M >, and QUESO::IntersectionSubset< V, M >.
const std::string & QUESO::VectorSet< V, M >::prefix | ( | ) | const |
Access to private attribute m_prefix.
Definition at line 84 of file VectorSet.C.
Referenced by QUESO::InstantiateIntersection().
|
virtual |
Prints nothing.
Reimplemented in QUESO::VectorSpace< V, M >, QUESO::VectorSpace< QUESO::GslVector, QUESO::GslMatrix >, QUESO::VectorSpace< P_V, P_M >, QUESO::VectorSpace< Q_V, Q_M >, QUESO::BoxSubset< V, M >, QUESO::BoxSubset< Q_V, Q_M >, QUESO::ConcatenationSubset< V, M >, QUESO::IntersectionSubset< V, M >, QUESO::VectorSubset< V, M >, QUESO::VectorSubset< Q_V, Q_M >, and QUESO::DiscreteSubset< V, M >.
Definition at line 98 of file VectorSet.C.
|
pure virtual |
Vector space to which this
set belongs to. See template specialization.
Implemented in QUESO::VectorSpace< V, M >, QUESO::VectorSpace< QUESO::GslVector, QUESO::GslMatrix >, QUESO::VectorSpace< P_V, P_M >, QUESO::VectorSpace< Q_V, Q_M >, QUESO::VectorSubset< V, M >, and QUESO::VectorSubset< Q_V, Q_M >.
Referenced by QUESO::ComputeCovCorrMatricesBetweenVectorRvs(), QUESO::ConcatenatedJointPdf< V, M >::ConcatenatedJointPdf(), QUESO::ExponentialMatrixCovarianceFunction< P_V, P_M, Q_V, Q_M >::ExponentialMatrixCovarianceFunction(), QUESO::InstantiateIntersection(), and QUESO::StatisticalInverseProblem< P_V, P_M >::StatisticalInverseProblem().
double QUESO::VectorSet< V, M >::volume | ( | ) | const |
Set volume; access to private attribute m_volume.
Definition at line 91 of file VectorSet.C.
Referenced by QUESO::MonteCarloQuadrature< V, M >::MonteCarloQuadrature(), and QUESO::UniformVectorRealizer< V, M >::realization().
|
friend |
Definition at line 96 of file VectorSet.h.
|
protected |
Definition at line 104 of file VectorSet.h.
Referenced by QUESO::VectorSet< V, M >::VectorSet(), QUESO::VectorSpace< V, M >::VectorSpace(), and QUESO::VectorSubset< V, M >::VectorSubset().
|
protected |
Definition at line 105 of file VectorSet.h.
Referenced by QUESO::VectorSpace< V, M >::VectorSpace().
|
protected |
Definition at line 106 of file VectorSet.h.
Referenced by QUESO::BoxSubset< V, M >::BoxSubset(), and QUESO::DiscreteSubset< V, M >::DiscreteSubset().