25 #include <queso/LogNormalVectorRealizer.h> 
   26 #include <queso/GslVector.h> 
   27 #include <queso/GslMatrix.h> 
   32 template<
class V, 
class M>
 
   35                                                                     const V& lawExpVector,
 
   36                                                                     const M& lowerCholLawCovMatrix)
 
   38   BaseVectorRealizer<V,M>( ((std::string)(prefix)+
"gau").c_str(), unifiedImageSet, std::numeric_limits<unsigned int>::max()), 
 
   39   m_unifiedLawExpVector  (new V(lawExpVector)),
 
   40   m_unifiedLawVarVector  (unifiedImageSet.vectorSpace().newVector( INFINITY)), 
 
   41   m_lowerCholLawCovMatrix(new M(lowerCholLawCovMatrix)),
 
   59 template<
class V, 
class M>
 
   62                                                                     const V& lawExpVector,
 
   67   BaseVectorRealizer<V,M>( ((std::string)(prefix)+
"gau").c_str(), unifiedImageSet, std::numeric_limits<unsigned int>::max()), 
 
   68   m_unifiedLawExpVector  (new V(lawExpVector)),
 
   69   m_unifiedLawVarVector  (unifiedImageSet.vectorSpace().newVector( INFINITY)), 
 
   70   m_lowerCholLawCovMatrix(NULL),
 
   72   m_vecSsqrt             (new V(vecSsqrt)),
 
   73   m_matVt                (new M(matVt))
 
   88 template<
class V, 
class M>
 
   94   delete m_lowerCholLawCovMatrix;
 
   95   delete m_unifiedLawVarVector;
 
   96   delete m_unifiedLawExpVector;
 
   99 template <
class V, 
class M>
 
  103   return *m_unifiedLawExpVector;
 
  106 template <
class V, 
class M>
 
  110   return *m_unifiedLawVarVector;
 
  113 template<
class V, 
class M>
 
  117   V iidGaussianVector(m_unifiedImageSet.vectorSpace().zeroVector());
 
  119   bool outOfSupport = 
true;
 
  121     iidGaussianVector.cwSetGaussian(0.0, 1.0);
 
  123     if (m_lowerCholLawCovMatrix) {
 
  124       nextValues = (*m_unifiedLawExpVector) + (*m_lowerCholLawCovMatrix)*iidGaussianVector;
 
  126     else if (m_matU && m_vecSsqrt && m_matVt) {
 
  127       nextValues = (*m_unifiedLawExpVector) + (*m_matU)*( (*m_vecSsqrt) * ((*m_matVt)*iidGaussianVector) );
 
  132                           "LogNormalVectorRealizer<V,M>::realization()",
 
  133                           "inconsistent internal state");
 
  136     for (
unsigned int i = 0; i < nextValues.sizeLocal(); ++i) {
 
  137       nextValues[i] = std::exp(nextValues[i]);
 
  140     outOfSupport = !(this->m_unifiedImageSet.contains(nextValues));
 
  141   } 
while (outOfSupport); 
 
const V & unifiedLawExpVector() const 
Access to the vector of mean values and private attribute: m_unifiedLawExpVector. ...
 
~LogNormalVectorRealizer()
Destructor. 
 
A templated class for handling sets. 
 
std::ofstream * subDisplayFile() const 
Access function for m_subDisplayFile (displays file on stream). 
 
LogNormalVectorRealizer(const char *prefix, const VectorSet< V, M > &unifiedImageSet, const V &lawExpVector, const M &lowerCholLawCovMatrix)
Constructor. 
 
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
 
const V & unifiedLawVarVector() const 
Access to the vector of variance values and private attribute: m_unifiedLawVarVector. 
 
void realization(V &nextValues) const 
Draws a realization. 
 
A templated (base) class for handling sampling from vector RVs. 
 
unsigned int displayVerbosity() const 
 
const BaseEnvironment & m_env
 
A class for handling sampling from a Log-Normal probability density distribution. ...