queso-0.53.0
List of all members
QUESO::WignerVectorRV< V, M > Class Template Reference

A class representing a vector RV constructed via Wigner distribution. More...

#include <WignerVectorRV.h>

Inheritance diagram for QUESO::WignerVectorRV< V, M >:
Inheritance graph
[legend]
Collaboration diagram for QUESO::WignerVectorRV< V, M >:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods
 WignerVectorRV (const char *prefix, const VectorSet< V, M > &imageSet, const V &centerPos, double radius)
 Default Constructor. More...
 
virtual ~WignerVectorRV ()
 Virtual destructor. More...
 
I/O methods
void print (std::ostream &os) const
 TODO: Prints the vector RV. More...
 
- Public Member Functions inherited from QUESO::BaseVectorRV< V, M >
 BaseVectorRV (const char *prefix, const VectorSet< V, M > &imageSet)
 Constructor. More...
 
virtual ~BaseVectorRV ()
 Virtual destructor. More...
 
const BaseEnvironmentenv () const
 QUESO environment; access to private attribute m_env. More...
 
const VectorSet< V, M > & imageSet () const
 Image set of the vector RV; access to private attribute m_imageSet. More...
 
const BaseJointPdf< V, M > & pdf () const
 Posterior Density Function of the vector RV; access to private attribute m_pdf. More...
 
const BaseVectorRealizer< V, M > & realizer () const
 Finds a realization (sample) of the PDF of this vector RV; access to private attribute m_realizer. More...
 
const BaseVectorCdf< V, M > & subCdf () const
 Finds the Cumulative Distribution Function of this vector RV, considering only the sub-sequence of data; access to private attribute m_subCdf. More...
 
const BaseVectorCdf< V, M > & unifiedCdf () const
 Finds the Cumulative Distribution Function of this vector RV, considering the unified sequence of data; access to private attribute m_unifiedCdf. More...
 
const BaseVectorMdf< V, M > & mdf () const
 Finds the Mass Density Function of this vector RV; access to private attribute m_mdf. More...
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::BaseVectorRV< V, M >
const BaseEnvironmentm_env
 
std::string m_prefix
 
const VectorSet< V, M > & m_imageSet
 
BaseJointPdf< V, M > * m_pdf
 
BaseVectorRealizer< V, M > * m_realizer
 
const BaseVectorCdf< V, M > * m_subCdf
 
const BaseVectorCdf< V, M > * m_unifiedCdf
 
const BaseVectorMdf< V, M > * m_mdf
 

Detailed Description

template<class V = GslVector, class M = GslMatrix>
class QUESO::WignerVectorRV< V, M >

A class representing a vector RV constructed via Wigner distribution.

This class allows the user to compute the value of a Wigner PDF and to generate realizations (samples) from it.

Todo:
: WignerVectorRealizer.realization() is not yet available, thus this class does nothing.

Definition at line 54 of file WignerVectorRV.h.

Constructor & Destructor Documentation

template<class V , class M >
QUESO::WignerVectorRV< V, M >::WignerVectorRV ( const char *  prefix,
const VectorSet< V, M > &  imageSet,
const V &  centerPos,
double  radius 
)

Default Constructor.

Definition at line 35 of file WignerVectorRV.C.

References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRV< V, M >::m_env, QUESO::BaseVectorRV< V, M >::m_imageSet, QUESO::BaseVectorRV< V, M >::m_mdf, QUESO::BaseVectorRV< V, M >::m_pdf, QUESO::BaseVectorRV< V, M >::m_prefix, QUESO::BaseVectorRV< V, M >::m_realizer, QUESO::BaseVectorRV< V, M >::m_subCdf, QUESO::BaseVectorRV< V, M >::m_unifiedCdf, queso_require_greater_msg, and QUESO::BaseEnvironment::subDisplayFile().

40  :
41  BaseVectorRV<V,M>(((std::string)(prefix)+"uni").c_str(),imageSet)
42 {
43  if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
44  *m_env.subDisplayFile() << "Entering WignerVectorRV<V,M>::constructor()"
45  << ": prefix = " << m_prefix
46  << std::endl;
47  }
48 
49  queso_require_greater_msg(radius, 0., "invalid radius");
50 
51  m_pdf = new WignerJointPdf<V,M>(m_prefix.c_str(),
52  m_imageSet,
53  centerPos,
54  radius);
55  m_realizer = new WignerVectorRealizer<V,M>(m_prefix.c_str(),
56  m_imageSet,
57  centerPos,
58  radius);
59  m_subCdf = NULL; // FIX ME: complete code
60  m_unifiedCdf = NULL; // FIX ME: complete code
61  m_mdf = NULL; // FIX ME: complete code
62 
63  if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
64  *m_env.subDisplayFile() << "Leaving WignerVectorRV<V,M>::constructor()"
65  << ": prefix = " << m_prefix
66  << std::endl;
67  }
68 }
unsigned int displayVerbosity() const
Definition: Environment.C:396
const VectorSet< V, M > & m_imageSet
Definition: VectorRV.h:117
BaseJointPdf< V, M > * m_pdf
Definition: VectorRV.h:118
std::string m_prefix
Definition: VectorRV.h:116
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:274
const BaseVectorCdf< V, M > * m_unifiedCdf
Definition: VectorRV.h:121
const BaseEnvironment & m_env
Definition: VectorRV.h:115
const VectorSet< V, M > & imageSet() const
Image set of the vector RV; access to private attribute m_imageSet.
Definition: VectorRV.C:79
const BaseVectorMdf< V, M > * m_mdf
Definition: VectorRV.h:122
#define queso_require_greater_msg(expr1, expr2, msg)
Definition: asserts.h:88
const BaseVectorCdf< V, M > * m_subCdf
Definition: VectorRV.h:120
BaseVectorRealizer< V, M > * m_realizer
Definition: VectorRV.h:119
template<class V , class M >
QUESO::WignerVectorRV< V, M >::~WignerVectorRV ( )
virtual

Virtual destructor.

Definition at line 71 of file WignerVectorRV.C.

72 {
73  delete m_mdf;
74  delete m_unifiedCdf;
75  delete m_subCdf;
76  delete m_realizer;
77  delete m_pdf;
78 }
BaseJointPdf< V, M > * m_pdf
Definition: VectorRV.h:118
const BaseVectorCdf< V, M > * m_unifiedCdf
Definition: VectorRV.h:121
const BaseVectorMdf< V, M > * m_mdf
Definition: VectorRV.h:122
const BaseVectorCdf< V, M > * m_subCdf
Definition: VectorRV.h:120
BaseVectorRealizer< V, M > * m_realizer
Definition: VectorRV.h:119

Member Function Documentation

template<class V , class M >
void QUESO::WignerVectorRV< V, M >::print ( std::ostream &  os) const
virtual

TODO: Prints the vector RV.

Todo:
: implement me!

Implements QUESO::BaseVectorRV< V, M >.

Definition at line 82 of file WignerVectorRV.C.

83 {
84  os << "WignerVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
85  return;
86 }

The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:36 for queso-0.53.0 by  doxygen 1.8.5