25 #include <queso/GslVector.h>
26 #include <queso/GslMatrix.h>
28 #include <queso/BetaJointPdf.h>
29 #include <queso/BetaVectorRV.h>
30 #include <queso/BetaVectorRealizer.h>
35 template<
class V,
class M>
42 BaseVectorRV<V,M>(((std::string)(prefix)+
"uni").c_str(),imageSet)
54 double smallerOfMaxValues = imageBox->
maxValues().getMinValue();
55 double biggerOfMaxValues = imageBox->
maxValues().getMaxValue();
56 double smallerOfMinValues = imageBox->
minValues().getMinValue();
57 double biggerOfMinValues = imageBox->
minValues().getMaxValue();
60 if( (smallerOfMinValues < 0) || ( biggerOfMaxValues > 1 ) )
62 std::cerr <<
"In BetaVectorRV<V,M>::constructor()\n"
63 <<
"Beta distribution is defined only in [0, 1].\n"
64 <<
"The data provided is: \n"
66 <<
"Sampling will not cover all interval.\n"
72 "In BetaVectorRV<V,M>::constructor()",
73 "invalid input: Beta distribution is only defined in [0, 1], and max(m_minValues)>1");
77 "In BetaVectorRV<V,M>::constructor()",
78 "invalid input: Beta distribution is only defined in [0, 1], and min(m_maxValues)<0");
101 template<
class V,
class M>
111 template <
class V,
class M>
115 os <<
"BetaVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
A class representing a vector RV constructed via Beta distribution.
const BaseVectorCdf< V, M > * m_unifiedCdf
A templated class for handling sets.
const V & minValues() const
Vector of the minimum values of the box subset.
int worldRank() const
Returns the process world rank.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
const VectorSet< V, M > & m_imageSet
const BaseEnvironment & m_env
const V & maxValues() const
Vector of the maximum values of the box subset.
virtual ~BetaVectorRV()
Virtual destructor.
const BaseVectorCdf< V, M > * m_subCdf
BaseVectorRealizer< V, M > * m_realizer
A class for handling sampling from a Beta probability density distribution.
void print(std::ostream &os) const
TODO: Prints the vector RV.
A class for handling Beta joint PDFs.
const VectorSet< V, M > & imageSet() const
Image set of the vector RV; access to private attribute m_imageSet.
BetaVectorRV(const char *prefix, const VectorSet< V, M > &imageSet, const V &alpha, const V &beta)
Default Constructor.
Class representing a subset of a vector space shaped like a hypercube.
A templated base class for handling vector RV.
unsigned int displayVerbosity() const
const BaseVectorMdf< V, M > * m_mdf
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
BaseJointPdf< V, M > * m_pdf