queso-0.53.0
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-2015 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 
35 class GslVector;
36 class GslMatrix;
37 
47 template <class V = GslVector, class M = GslMatrix>
49 public:
51 
52  TransformedScaledCovMatrixTKGroup(const char * prefix,
54  const BoxSubset<V, M> & boxSubset, const std::vector<double> & scales,
55  const M & covMatrix);
56 
60 
62 
63  bool symmetric() const;
65 
67  const InvLogitGaussianVectorRV<V, M> & rv(unsigned int stageId) const;
68 
71  const std::vector<unsigned int> & stageIds);
72 
74 
75  void updateLawCovMatrix(const M & covMatrix);
77 
79 
80 
86  bool setPreComputingPosition(const V & position, unsigned int stageId);
87 
91 
93 
94 
96  void print(std::ostream & os) const;
98 
99  // Convenience method that transforms a point in physical (user) space to a
100  // space with no boundaries and where the proposal covariance matrix is
101  // Gaussian
102  void transformToGaussianSpace(const V & physicalPoint,
103  V & transformedPoint) const;
104 
105 private:
107  void setRVsWithZeroMean();
108 
115 
118 
119 };
120 
121 } // End namespace QUESO
122 
123 #endif // UQ_TRANSFORMED_SCALEDCOV_TK_GROUP_H
bool symmetric() const
Whether or not the matrix is symmetric. Always &#39;false&#39;.
This base class allows the representation of a transition kernel.
Definition: TKGroup.h:50
bool setPreComputingPosition(const V &position, unsigned int stageId)
Sets the pre-computing positions m_preComputingPositions[stageId] with a new vector of size position...
void print(std::ostream &os) const
TODO: Prints the transition kernel.
void setRVsWithZeroMean()
Sets the mean of the underlying Gaussian RVs to zero.
TransformedScaledCovMatrixTKGroup(const char *prefix, const BoxSubset< V, M > &boxSubset, const std::vector< double > &scales, const M &covMatrix)
Default constructor.
This class represents a transition kernel with a scaled covariance matrix on hybrid bounded/unbounded...
void updateLawCovMatrix(const M &covMatrix)
Scales the covariance matrix of the underlying Gaussian distribution.
Class representing a subset of a vector space shaped like a hypercube.
Definition: BoxSubset.h:44
const InvLogitGaussianVectorRV< V, M > & rv(unsigned int stageId) const
InvLogitGaussian increment property to construct a transition kernel.
void clearPreComputingPositions()
Clears the pre-computing positions m_preComputingPositions[stageId].
void transformToGaussianSpace(const V &physicalPoint, V &transformedPoint) const
A class representing a (transformed) Gaussian vector RV with bounds.

Generated on Thu Jun 11 2015 13:52:32 for queso-0.53.0 by  doxygen 1.8.5