25 #include <queso/BetaVectorRV.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)
51 double smallerOfMaxValues = imageBox->
maxValues().getMinValue();
52 double biggerOfMaxValues = imageBox->
maxValues().getMaxValue();
53 double smallerOfMinValues = imageBox->
minValues().getMinValue();
54 double biggerOfMinValues = imageBox->
minValues().getMaxValue();
57 if( (smallerOfMinValues < 0) || ( biggerOfMaxValues > 1 ) )
59 std::cerr <<
"In BetaVectorRV<V,M>::constructor()\n"
60 <<
"Beta distribution is defined only in [0, 1].\n"
61 <<
"The data provided is: \n"
63 <<
"Sampling will not cover all interval.\n"
69 "In BetaVectorRV<V,M>::constructor()",
70 "invalid input: Beta distribution is only defined in [0, 1], and max(m_minValues)>1");
74 "In BetaVectorRV<V,M>::constructor()",
75 "invalid input: Beta distribution is only defined in [0, 1], and min(m_maxValues)<0");
98 template<
class V,
class M>
108 template <
class V,
class M>
112 os <<
"BetaVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
Class representing a subset of a vector space shaped like a hypercube.
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
A class representing a vector RV constructed via Beta distribution.
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.
virtual ~BetaVectorRV()
Virtual destructor.
const BaseVectorMdf< V, M > * m_mdf
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.
const V & minValues() const
Vector of the minimum values of the box subset.
A class for handling sampling from a Beta probability density distribution.
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 for handling Beta joint PDFs.