queso-0.51.1
ScaledCovMatrixTKGroup.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_SCALEDCOV_TRANSITION_KERNEL_GROUP_H
26 #define UQ_SCALEDCOV_TRANSITION_KERNEL_GROUP_H
27 
28 #include <queso/TKGroup.h>
29 #include <queso/VectorRV.h>
30 #include <queso/ScalarFunctionSynchronizer.h>
31 
32 namespace QUESO {
33 
34 //*****************************************************
35 // TK with scaled cov matrix
36 //*****************************************************
40 template<class V, class M>
41 class ScaledCovMatrixTKGroup : public BaseTKGroup<V,M> {
42 public:
44 
45  ScaledCovMatrixTKGroup(const char* prefix,
47  const VectorSpace<V,M>& vectorSpace,
48  const std::vector<double>& scales,
49  const M& covMatrix);
53 
55 
56 
58  bool symmetric () const;
59 
61  const GaussianVectorRV<V,M>& rv (unsigned int stageId ) const;
62 
64  const GaussianVectorRV<V,M>& rv (const std::vector<unsigned int>& stageIds);
65 
67 
68  void updateLawCovMatrix (const M& covMatrix);
70 
72 
73  bool setPreComputingPosition (const V& position, unsigned int stageId);
75 
79 
81 
82 
84  void print (std::ostream& os) const;
86 private:
88  void setRVsWithZeroMean ();
95 
97 };
98 
99 } // End namespace QUESO
100 
101 #endif // UQ_SCALEDCOV_TRANSITION_KERNEL_GROUP_H
void clearPreComputingPositions()
Clears the pre-computing positions m_preComputingPositions[stageId].
This class allows the representation of a transition kernel with a scaled covariance matrix...
bool symmetric() const
Whether or not the matrix is symmetric. Always &#39;true&#39;.
void print(std::ostream &os) const
TODO: Prints the transition kernel.
This base class allows the representation of a transition kernel.
Definition: TKGroup.h:49
ScaledCovMatrixTKGroup(const char *prefix, const VectorSpace< V, M > &vectorSpace, const std::vector< double > &scales, const M &covMatrix)
Default constructor.
void updateLawCovMatrix(const M &covMatrix)
Scales the covariance matrix.
A class representing a vector space.
Definition: VectorSet.h:46
const GaussianVectorRV< V, M > & rv(unsigned int stageId) const
Gaussian 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...
A class representing a Gaussian vector RV.
void setRVsWithZeroMean()
Sets the mean of the RVs to zero.

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