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


Public Member Functions | |
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... | |
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 () | |
| 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 | |
| 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 42 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 | 
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 | 
Prints both subsets (via protected attributes m_set1 and m_set2).
Reimplemented from QUESO::VectorSubset< V, M >.
Definition at line 61 of file IntersectionSubset.C.
      
  | 
  protected | 
Vector set: m_set1.
We seek the intersection of vectors set m_set1 and m_set2.
Definition at line 79 of file IntersectionSubset.h.
      
  | 
  protected | 
Vector set: m_set2.
Definition at line 82 of file IntersectionSubset.h.