queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::JeffreysVectorRV< V, M > Class Template Reference

A class representing a jeffreys vector RV. More...

#include <JeffreysVectorRV.h>

Inheritance diagram for QUESO::JeffreysVectorRV< V, M >:
QUESO::BaseVectorRV< V, M >

Public Member Functions

Constructor/Destructor methods
 JeffreysVectorRV (const char *prefix, const VectorSet< V, M > &imageSet)
 Default constructor. More...
 
virtual ~JeffreysVectorRV ()
 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 >
virtual double estimateENT_ANN () const
 
 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...
 
bool has_realizer () const
 Returns true iff this RV has the ability to produce realizations (samples) 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 Marginal 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::JeffreysVectorRV< V, M >

A class representing a jeffreys vector RV.

This class allows the user to compute the value of a jeffreys PDF and to generate realizations (samples) from it. It is used, for instance, to create a jeffreys prior PDF.

Definition at line 48 of file JeffreysVectorRV.h.

Constructor & Destructor Documentation

template<class V , class M >
QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV ( const char *  prefix,
const VectorSet< V, M > &  imageSet 
)

Default constructor.

Constructs a uniform vector RV, given a prefix and the image set of the vector RV.

Definition at line 36 of file JeffreysVectorRV.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, and QUESO::BaseEnvironment::subDisplayFile().

39  :
40  BaseVectorRV<V,M>(((std::string)(prefix)+"jef").c_str(),imageSet)
41 {
42  if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
43  *m_env.subDisplayFile() << "Entering JeffreysVectorRV<V,M>::constructor()"
44  << ": prefix = " << m_prefix
45  << std::endl;
46  }
47 
48  m_pdf = new JeffreysJointPdf<V,M>(m_prefix.c_str(),
49  m_imageSet);
50  m_realizer = new JeffreysVectorRealizer<V,M>(m_prefix.c_str(),
51  m_imageSet);
52  m_subCdf = NULL; // FIX ME: complete code
53  m_unifiedCdf = NULL; // FIX ME: complete code
54  m_mdf = NULL; // FIX ME: complete code
55 
56  if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
57  *m_env.subDisplayFile() << "Leaving JeffreysVectorRV<V,M>::constructor()"
58  << ": prefix = " << m_prefix
59  << std::endl;
60  }
61 }
std::string m_prefix
Definition: VectorRV.h:118
const BaseVectorCdf< V, M > * m_unifiedCdf
Definition: VectorRV.h:123
const BaseEnvironment & m_env
Definition: VectorRV.h:117
const VectorSet< V, M > & imageSet() const
Image set of the vector RV; access to private attribute m_imageSet.
Definition: VectorRV.C:83
BaseVectorRealizer< V, M > * m_realizer
Definition: VectorRV.h:121
BaseJointPdf< V, M > * m_pdf
Definition: VectorRV.h:120
const BaseVectorCdf< V, M > * m_subCdf
Definition: VectorRV.h:122
unsigned int displayVerbosity() const
Definition: Environment.C:450
const VectorSet< V, M > & m_imageSet
Definition: VectorRV.h:119
const BaseVectorMdf< V, M > * m_mdf
Definition: VectorRV.h:124
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:320
template<class V , class M >
QUESO::JeffreysVectorRV< V, M >::~JeffreysVectorRV ( )
virtual

Virtual destructor.

Definition at line 64 of file JeffreysVectorRV.C.

65 {
66  delete m_mdf;
67  delete m_unifiedCdf;
68  delete m_subCdf;
69  delete m_realizer;
70  delete m_pdf;
71 }
const BaseVectorCdf< V, M > * m_unifiedCdf
Definition: VectorRV.h:123
BaseVectorRealizer< V, M > * m_realizer
Definition: VectorRV.h:121
BaseJointPdf< V, M > * m_pdf
Definition: VectorRV.h:120
const BaseVectorCdf< V, M > * m_subCdf
Definition: VectorRV.h:122
const BaseVectorMdf< V, M > * m_mdf
Definition: VectorRV.h:124

Member Function Documentation

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

TODO: Prints the vector RV.

Todo:
: implement me!

Implements QUESO::BaseVectorRV< V, M >.

Definition at line 75 of file JeffreysVectorRV.C.

76 {
77  os << "JeffreysVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
78  return;
79 }

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

Generated on Tue Jun 5 2018 19:49:32 for queso-0.57.1 by  doxygen 1.8.5