queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
JeffreysVectorRV.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/JeffreysVectorRV.h>
26 #include <queso/JeffreysJointPdf.h>
27 #include <queso/JeffreysVectorRealizer.h>
28 #include <queso/VectorSet.h>
29 #include <queso/GslVector.h>
30 #include <queso/GslMatrix.h>
31 
32 namespace QUESO {
33 
34 // Default constructor-------------------------------
35 template<class V, class M>
37  const char* prefix,
38  const VectorSet<V,M>& imageSet)
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);
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 }
62 // Destructor ---------------------------------------
63 template<class V, class M>
65 {
66  delete m_mdf;
67  delete m_unifiedCdf;
68  delete m_subCdf;
69  delete m_realizer;
70  delete m_pdf;
71 }
72 // I/O methods --------------------------------------
73 template <class V, class M>
74 void
75 JeffreysVectorRV<V,M>::print(std::ostream& os) const
76 {
77  os << "JeffreysVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
78  return;
79 }
80 
81 } // End namespace QUESO
82 
std::string m_prefix
Definition: VectorRV.h:118
A class representing a jeffreys vector RV.
const BaseVectorCdf< V, M > * m_unifiedCdf
Definition: VectorRV.h:123
const BaseEnvironment & m_env
Definition: VectorRV.h:117
A templated class for handling sets.
Definition: VectorSet.h:52
A class for handling sampling from a jeffreys probability density distribution.
BaseVectorRealizer< V, M > * m_realizer
Definition: VectorRV.h:121
void print(std::ostream &os) const
TODO: Prints the vector RV.
virtual ~JeffreysVectorRV()
Virtual destructor.
BaseJointPdf< V, M > * m_pdf
Definition: VectorRV.h:120
A class for handling jeffreys joint PDFs.
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
JeffreysVectorRV(const char *prefix, const VectorSet< V, M > &imageSet)
Default constructor.
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

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