25 #include <queso/InverseGammaVectorRV.h>
26 #include <queso/GslVector.h>
27 #include <queso/GslMatrix.h>
32 template<
class V,
class M>
39 BaseVectorRV<V,M>(((std::string)(prefix)+
"uni").c_str(),imageSet)
50 double smallerOfMaxValues = imageBox->
maxValues().getMinValue();
51 double smallerOfMinValues = imageBox->
minValues().getMinValue();
53 if( smallerOfMinValues < 0 )
55 std::cerr <<
"In InverseGammaVectorRV<V,M>::constructor()\n"
56 <<
"Inverse Gamma distribution is only defined in (0, infinity).\n"
57 <<
"The data provided is: \n"
59 <<
"Sampling will not cover all interval.\n"
64 "InverseGammaVectorRealizer<V,M>::constructor()",
65 "invalid input: Inverse Gamma distribution is only defined in (0, infinity), and min(m_maxValues)<0");
88 template<
class V,
class M>
98 template <
class V,
class M>
102 os <<
"InverseGammaVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
A class for handling sampling from an Inverse Gamma probability density distribution.
Class representing a subset of a vector space shaped like a hypercube.
InverseGammaVectorRV(const char *prefix, const VectorSet< V, M > &imageSet, const V &alpha, const V &beta)
Default Constructor.
const BaseVectorCdf< V, M > * m_unifiedCdf
A templated base class for handling vector RV.
int worldRank() const
Returns the process world rank.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
const BaseEnvironment & m_env
const VectorSet< V, M > & m_imageSet
const BaseVectorCdf< V, M > * m_subCdf
BaseVectorRealizer< V, M > * m_realizer
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
A templated class for handling sets.
const BaseVectorMdf< V, M > * m_mdf
const VectorSet< V, M > & imageSet() const
Image set of the vector RV; access to private attribute m_imageSet.
const V & minValues() const
Vector of the minimum values of the box subset.
void print(std::ostream &os) const
TODO: Prints the vector RV.
BaseJointPdf< V, M > * m_pdf
const V & maxValues() const
Vector of the maximum values of the box subset.
unsigned int displayVerbosity() const
A class representing a vector RV constructed via Inverse Gamma distribution.
A class for handling Inverse Gamma joint PDFs.
virtual ~InverseGammaVectorRV()
Virtual destructor.