queso-0.51.1
Private Attributes | List of all members
QUESO::WignerVectorRealizer< V, M > Class Template Reference

A class for handling sampling from a Wigner probability density distribution. More...

#include <WignerVectorRealizer.h>

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

Public Member Functions

Constructor/Destructor methods
 WignerVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, const V &centerPos, double radius)
 Constructor. More...
 
 ~WignerVectorRealizer ()
 Destructor. More...
 
Realization-related methods
void realization (V &nextValues) const
 TODO: Draws a realization. More...
 
- Public Member Functions inherited from QUESO::BaseVectorRealizer< V, M >
 BaseVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, unsigned int subPeriod)
 Default constructor. More...
 
virtual ~BaseVectorRealizer ()
 Virtual destructor. More...
 
const VectorSet< V, M > & unifiedImageSet () const
 Image set where the realizations lie. Access to protected attribute m_unifiedImageSet. More...
 
unsigned int subPeriod () const
 Sub-period of the realization. Access to protected attribute m_subPeriod. More...
 

Private Attributes

V * m_centerPos
 
double m_radius
 

Additional Inherited Members

- Protected Attributes inherited from QUESO::BaseVectorRealizer< V, M >
const BaseEnvironmentm_env
 
std::string m_prefix
 
const VectorSet< V, M > & m_unifiedImageSet
 
unsigned int m_subPeriod
 

Detailed Description

template<class V, class M>
class QUESO::WignerVectorRealizer< V, M >

A class for handling sampling from a Wigner probability density distribution.

This class will handle sampling from an Wigner probability density distribution, with a given center position and a radius.

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

Definition at line 49 of file WignerVectorRealizer.h.

Constructor & Destructor Documentation

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

Constructor.

Constructs a new object, given a prefix, the image set of the vector realizer, the center position centerPos, and a radius radius.

Definition at line 33 of file WignerVectorRealizer.C.

References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRealizer< V, M >::m_env, QUESO::BaseVectorRealizer< V, M >::m_prefix, QUESO::WignerVectorRealizer< V, M >::m_radius, QUESO::BaseEnvironment::subDisplayFile(), UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().

38  :
39  BaseVectorRealizer<V,M>(((std::string)(prefix)+"gen").c_str(),unifiedImageSet,std::numeric_limits<unsigned int>::max()),
40  m_centerPos(new V(centerPos)),
41  m_radius (radius)
42 {
43  if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 5)) {
44  *m_env.subDisplayFile() << "Entering WignerVectorRealizer<V,M>::constructor()"
45  << ": prefix = " << m_prefix
46  << std::endl;
47  }
48 
50  m_env.worldRank(),
51  "WignerVectorRealizer<V,M>::constructor()",
52  "invalid radius");
53 
54  if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 5)) {
55  *m_env.subDisplayFile() << "Leaving WignerVectorRealizer<V,M>::constructor()"
56  << ": prefix = " << m_prefix
57  << std::endl;
58  }
59 }
int worldRank() const
Returns the process world rank.
Definition: Environment.C:235
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:305
const BaseEnvironment & m_env
unsigned int displayVerbosity() const
Definition: Environment.C:436
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
const VectorSet< V, M > & unifiedImageSet() const
Image set where the realizations lie. Access to protected attribute m_unifiedImageSet.
template<class V , class M >
QUESO::WignerVectorRealizer< V, M >::~WignerVectorRealizer ( )

Destructor.

Definition at line 62 of file WignerVectorRealizer.C.

63 {
64  delete m_centerPos;
65 }

Member Function Documentation

template<class V , class M >
void QUESO::WignerVectorRealizer< V, M >::realization ( V &  nextValues) const
virtual

TODO: Draws a realization.

Todo:
: implement and explain me!

Implements QUESO::BaseVectorRealizer< V, M >.

Definition at line 70 of file WignerVectorRealizer.C.

References UQ_FATAL_TEST_MACRO.

71 {
73  m_env.worldRank(),
74  "WignerVectorRealizer<V,M>::realization()",
75  "not implemented yet");
76 
77  nextValues.cwSet(0.);
78  return;
79 }
int worldRank() const
Returns the process world rank.
Definition: Environment.C:235
const BaseEnvironment & m_env
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223

Member Data Documentation

template<class V, class M>
V* QUESO::WignerVectorRealizer< V, M >::m_centerPos
private

Definition at line 77 of file WignerVectorRealizer.h.

template<class V, class M>
double QUESO::WignerVectorRealizer< V, M >::m_radius
private

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

Generated on Thu Apr 23 2015 19:26:19 for queso-0.51.1 by  doxygen 1.8.5