queso-0.56.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-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 
73  virtual const InvLogitGaussianVectorRV<V, M> & rv(const V & position) const;
74 
76 
77  void updateLawCovMatrix(const M & covMatrix);
79 
81 
82 
88  bool setPreComputingPosition(const V & position, unsigned int stageId);
89 
92 
93  virtual unsigned int set_dr_stage(unsigned int stageId);
95 
97 
98 
100  void print(std::ostream & os) const;
102 
103  // Convenience method that transforms a point in physical (user) space to a
104  // space with no boundaries and where the proposal covariance matrix is
105  // Gaussian
106  void transformToGaussianSpace(const V & physicalPoint,
107  V & transformedPoint) const;
108 
109 private:
111  void setRVsWithZeroMean();
112 
119 
122 
123 };
124 
125 } // End namespace QUESO
126 
127 #endif // UQ_TRANSFORMED_SCALEDCOV_TK_GROUP_H
void print(std::ostream &os) const
TODO: Prints the transition kernel.
void clearPreComputingPositions()
Clears the pre-computing positions m_preComputingPositions[stageId].
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.
Class representing a subset of a vector space shaped like a hypercube.
Definition: BoxSubset.h:44
void updateLawCovMatrix(const M &covMatrix)
Scales the covariance matrix of the underlying Gaussian distribution.
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.
bool setPreComputingPosition(const V &position, unsigned int stageId)
Sets the pre-computing positions m_preComputingPositions[stageId] with a new vector of size position...
A class representing a (transformed) Gaussian vector RV with bounds.
This base class allows the representation of a transition kernel.
Definition: Algorithm.h:32
This class represents a transition kernel with a scaled covariance matrix on hybrid bounded/unbounded...
virtual unsigned int set_dr_stage(unsigned int stageId)
Does nothing. Subclasses may re-implement. Returns the current stage id.
void transformToGaussianSpace(const V &physicalPoint, V &transformedPoint) const

Generated on Thu Dec 15 2016 13:23:11 for queso-0.56.1 by  doxygen 1.8.5