|
queso-0.56.1
|
A templated class representing the intersection of two vector sets. More...
#include <IntersectionSubset.h>


Public Member Functions | |
| void | moments (M &mat) const |
Returns the set moments of inertia in the matrix mat. Not implemented. More... | |
Constructor/Destructor methods. | |
| IntersectionSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume, const VectorSet< V, M > &set1, const VectorSet< V, M > &set2) | |
| Default, shaped constructor. More... | |
| ~IntersectionSubset () | |
| Destructor. More... | |
Mathematical methods. | |
| bool | contains (const V &vec) const |
Determines whether both sets m_set1 and m_set2 (class' private attributes) contain vector vec. More... | |
| void | centroid (V &vec) const |
Returns the set centroid in the vector vec. Not implemented. More... | |
I/O methods. | |
| void | print (std::ostream &os) const |
| Prints both subsets (via protected attributes m_set1 and m_set2). 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 | |
| const VectorSet< V, M > & | m_set1 |
| Vector set: m_set1. More... | |
| const VectorSet< V, M > & | m_set2 |
| Vector set: m_set2. 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 |
A templated class representing the intersection of two vector sets.
This class is used to determine if a vector belongs to the intersection of two vector sets. It is useful for handling a posterior PDF, since its domain is the intersection of the domain of the prior PDF with the domain of the likelihood function.
Definition at line 45 of file IntersectionSubset.h.
| QUESO::IntersectionSubset< V, M >::IntersectionSubset | ( | const char * | prefix, |
| const VectorSpace< V, M > & | vectorSpace, | ||
| double | volume, | ||
| const VectorSet< V, M > & | set1, | ||
| const VectorSet< V, M > & | set2 | ||
| ) |
Default, shaped constructor.
Creates the class for the intersection of two vector sets, given a vector space, its volume and the sets.
Definition at line 35 of file IntersectionSubset.C.
| QUESO::IntersectionSubset< V, M >::~IntersectionSubset | ( | ) |
|
virtual |
Returns the set centroid in the vector vec. Not implemented.
Implements QUESO::VectorSet< V, M >.
Definition at line 60 of file IntersectionSubset.C.
References queso_not_implemented.
|
virtual |
Determines whether both sets m_set1 and m_set2 (class' private attributes) contain vector vec.
Implements QUESO::VectorSubset< V, M >.
Definition at line 54 of file IntersectionSubset.C.
|
virtual |
Returns the set moments of inertia in the matrix mat. Not implemented.
Implements QUESO::VectorSet< V, M >.
Definition at line 67 of file IntersectionSubset.C.
References queso_not_implemented.
|
virtual |
Prints both subsets (via protected attributes m_set1 and m_set2).
Reimplemented from QUESO::VectorSubset< V, M >.
Definition at line 75 of file IntersectionSubset.C.
|
protected |
Vector set: m_set1.
We seek the intersection of vectors set m_set1 and m_set2.
Definition at line 89 of file IntersectionSubset.h.
|
protected |
Vector set: m_set2.
Definition at line 92 of file IntersectionSubset.h.