queso-0.51.1
TransformedScaledCovMatrixTKGroup.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_TRANSFORMED_SCALEDCOV_TK_GROUP_H
26 #define UQ_TRANSFORMED_SCALEDCOV_TK_GROUP_H
27 
28 #include <queso/TKGroup.h>
29 #include <queso/VectorRV.h>
30 #include <queso/ScalarFunctionSynchronizer.h>
31 #include <queso/InvLogitGaussianVectorRV.h>
32 
33 namespace QUESO {
34 
44 template<class V, class M>
46 public:
48 
49  TransformedScaledCovMatrixTKGroup(const char * prefix,
51  const BoxSubset<V, M> & boxSubset, const std::vector<double> & scales,
52  const M & covMatrix);
53 
57 
59 
60  bool symmetric() const;
62 
64  const InvLogitGaussianVectorRV<V, M> & rv(unsigned int stageId) const;
65 
68  const std::vector<unsigned int> & stageIds);
69 
71 
72  void updateLawCovMatrix(const M & covMatrix);
74 
76 
77 
83  bool setPreComputingPosition(const V & position, unsigned int stageId);
84 
88 
90 
91 
93  void print(std::ostream & os) const;
95 
96  // Convenience method that transforms a point in physical (user) space to a
97  // space with no boundaries and where the proposal covariance matrix is
98  // Gaussian
99  void transformToGaussianSpace(const V & physicalPoint,
100  V & transformedPoint) const;
101 
102 private:
104  void setRVsWithZeroMean();
105 
112 
115 
116 };
117 
118 } // End namespace QUESO
119 
120 #endif // UQ_TRANSFORMED_SCALEDCOV_TK_GROUP_H
TransformedScaledCovMatrixTKGroup(const char *prefix, const BoxSubset< V, M > &boxSubset, const std::vector< double > &scales, const M &covMatrix)
Default constructor.
void transformToGaussianSpace(const V &physicalPoint, V &transformedPoint) const
bool symmetric() const
Whether or not the matrix is symmetric. Always &#39;false&#39;.
const InvLogitGaussianVectorRV< V, M > & rv(unsigned int stageId) const
InvLogitGaussian increment property to construct a transition kernel.
bool setPreComputingPosition(const V &position, unsigned int stageId)
Sets the pre-computing positions m_preComputingPositions[stageId] with a new vector of size position...
void clearPreComputingPositions()
Clears the pre-computing positions m_preComputingPositions[stageId].
This class represents a transition kernel with a scaled covariance matrix on hybrid bounded/unbounded...
A class representing a (transformed) Gaussian vector RV with bounds.
This base class allows the representation of a transition kernel.
Definition: TKGroup.h:49
void setRVsWithZeroMean()
Sets the mean of the underlying Gaussian RVs to zero.
Class representing a subset of a vector space shaped like a hypercube.
Definition: BoxSubset.h:41
void print(std::ostream &os) const
TODO: Prints the transition kernel.
void updateLawCovMatrix(const M &covMatrix)
Scales the covariance matrix of the underlying Gaussian distribution.

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