queso-0.51.1
InvLogitGaussianJointPdf.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_INVLOGIT_GAUSSIAN_JOINT_PROB_DENSITY_H
26 #define UQ_INVLOGIT_GAUSSIAN_JOINT_PROB_DENSITY_H
27 
28 #include <queso/JointPdf.h>
29 #include <queso/ScalarFunction.h>
30 #include <queso/BoxSubset.h>
31 
32 namespace QUESO {
33 
54 template<class V, class M>
56 public:
58 
59 
67  InvLogitGaussianJointPdf(const char * prefix,
68  const BoxSubset<V, M> & domainBoxSubset, const V & lawExpVector,
69  const V & lawVarVector);
70 
72 
77  InvLogitGaussianJointPdf(const char * prefix,
78  const BoxSubset<V, M> & domainBoxSubset, const V & lawExpVector,
79  const M & lawCovMatrix);
80 
84 
86 
87 
89 
90  double actualValue(const V & domainVector, const V * domainDirection,
91  V * gradVector, M * hessianMatrix, V * hessianEffect) const;
92 
94 
106  double lnValue(const V & domainVector, const V * domainDirection,
107  V * gradVector, M * hessianMatrix, V * hessianEffect) const;
108 
110 
113  double computeLogOfNormalizationFactor(unsigned int numSamples,
114  bool updateFactorInternally) const;
115 
117 
121  void updateLawExpVector(const V & newLawExpVector);
122 
124 
128  void updateLawCovMatrix(const M & newLawCovMatrix);
129 
131  const M & lawCovMatrix() const;
132 
134  const V & lawExpVector() const;
135 
137  const V & lawVarVector() const;
139 private:
148  const M * m_lawCovMatrix;
149 
151 };
152 
153 } // End namespace QUESO
154 
155 #endif // UQ_INVLOGIT_GAUSSIAN_JOINT_PROB_DENSITY_H
void updateLawCovMatrix(const M &newLawCovMatrix)
Updates the lower triangular matrix from Cholesky decomposition of the covariance matrix to the new v...
const V & lawVarVector() const
Access to the vector of variance values and private attribute: m_lawVarVector.
InvLogitGaussianJointPdf(const char *prefix, const BoxSubset< V, M > &domainBoxSubset, const V &lawExpVector, const V &lawVarVector)
Constructor.
const BoxSubset< V, M > & m_domainBoxSubset
double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Logarithm of the value of the (transformed) Gaussian PDF (scalar function).
double actualValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Actual value of the (transformed) Gaussian PDF.
A templated (base) class for handling scalar functions.
Definition: GslOptimizer.h:48
Class representing a subset of a vector space shaped like a hypercube.
Definition: BoxSubset.h:41
double computeLogOfNormalizationFactor(unsigned int numSamples, bool updateFactorInternally) const
Computes the logarithm of the normalization factor.
const M & lawCovMatrix() const
Returns the covariance matrix; access to protected attribute m_lawCovMatrix.
A class for handling hybrid (transformed) Gaussians with bounds.
const V & lawExpVector() const
Access to the vector of mean values of the Gaussian (not transformed) and private attribute: m_lawExp...
A templated (base) class for handling joint PDFs.
Definition: JointPdf.h:60
void updateLawExpVector(const V &newLawExpVector)
Updates the mean of the Gaussian (not transformed) with the new value newLawExpVector.

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