queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
WignerVectorRV.C
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2017 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #include <queso/WignerVectorRV.h>
26 #include <queso/WignerJointPdf.h>
27 #include <queso/WignerVectorRealizer.h>
28 #include <queso/GslVector.h>
29 #include <queso/GslMatrix.h>
30 
31 namespace QUESO {
32 
33 // Default constructor -----------------------------
34 template<class V, class M>
36  const char* prefix,
37  const VectorSet<V,M>& imageSet,
38  const V& centerPos,
39  double radius)
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);
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 }
69 // Constructor -------------------------------------
70 template<class V, class M>
72 {
73  delete m_mdf;
74  delete m_unifiedCdf;
75  delete m_subCdf;
76  delete m_realizer;
77  delete m_pdf;
78 }
79 //--------------------------------------------------
80 template <class V, class M>
81 void
82 WignerVectorRV<V,M>::print(std::ostream& os) const
83 {
84  os << "WignerVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
85  return;
86 }
87 
88 } // End namespace QUESO
89 
std::string m_prefix
Definition: VectorRV.h:118
const BaseVectorCdf< V, M > * m_unifiedCdf
Definition: VectorRV.h:123
void print(std::ostream &os) const
TODO: Prints the vector RV.
A class for handling sampling from a Wigner probability density distribution.
WignerVectorRV(const char *prefix, const VectorSet< V, M > &imageSet, const V &centerPos, double radius)
Default Constructor.
virtual ~WignerVectorRV()
Virtual destructor.
const BaseEnvironment & m_env
Definition: VectorRV.h:117
A templated class for handling sets.
Definition: VectorSet.h:52
BaseVectorRealizer< V, M > * m_realizer
Definition: VectorRV.h:121
A class for handling Wigner joint PDFs.
BaseJointPdf< V, M > * m_pdf
Definition: VectorRV.h:120
A templated base class for handling vector RV.
Definition: VectorRV.h:53
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
A class representing a vector RV constructed via Wigner distribution.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:320

Generated on Tue Jun 5 2018 19:48:56 for queso-0.57.1 by  doxygen 1.8.5