queso-0.51.1
InvLogitGaussianVectorRealizer.h
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,2009,2010,2011,2012,2013 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 #ifndef UQ_INV_LOGIT_GAUSSIAN_REALIZER_H
26 #define UQ_INV_LOGIT_GAUSSIAN_REALIZER_H
27 
28 #include <queso/VectorRealizer.h>
29 
30 namespace QUESO {
31 
47 template<class V, class M>
49 public:
50 
52 
53 
60  InvLogitGaussianVectorRealizer(const char * prefix,
61  const BoxSubset<V, M> & unifiedImageBoxSubset, const V & lawExpVector,
62  const M & lowerCholLawCovMatrix);
63 
65 
72  InvLogitGaussianVectorRealizer(const char * prefix,
73  const BoxSubset<V, M> & unifiedImageBoxSubset, const V & lawExpVector,
74  const M & matU, const V & vecSsqrt, const M & matVt);
75 
79 
81 
82  const V & unifiedLawExpVector() const;
84 
86  const V & unifiedLawVarVector() const;
87 
89 
94  void realization(V & nextValues) const;
95 
97  void updateLawExpVector(const V & newLawExpVector);
98 
100 
104  void updateLowerCholLawCovMatrix(const M & newLowerCholLawCovMatrix);
105 
107 
111  void updateLowerCholLawCovMatrix(const M & matU, const V & vecSsqrt,
112  const M & matVt);
114 
115 private:
119  M * m_matU;
121  M * m_matVt;
122 
127 
128  // For easy access to the bounds of the domain
130 };
131 
132 } // End namespace QUESO
133 
134 #endif // UQ_INV_LOGIT_GAUSSIAN_REALIZER_H
const V & unifiedLawVarVector() const
Access to the vector of variance values and private attribute: m_unifiedLawVarVector.
A templated (base) class for handling sampling from vector RVs.
InvLogitGaussianVectorRealizer(const char *prefix, const BoxSubset< V, M > &unifiedImageBoxSubset, const V &lawExpVector, const M &lowerCholLawCovMatrix)
Constructor.
const V & unifiedLawExpVector() const
Access to the vector of mean values of the Gaussian and private attribute: m_unifiedLawExpVector.
void updateLowerCholLawCovMatrix(const M &newLowerCholLawCovMatrix)
Updates the lower triangular matrix from Cholesky decomposition of the covariance matrix to the new v...
void updateLawExpVector(const V &newLawExpVector)
Updates the mean of the Gaussian with the new value newLawExpVector.
void realization(V &nextValues) const
Draws a realization.
Class representing a subset of a vector space shaped like a hypercube.
Definition: BoxSubset.h:41
A class for handling sampling from (transformed) Gaussian probability density distributions with boun...

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