5 #ifndef BPP_NUMERIC_PROB_MULTIPLEDISCRETEDISTRIBUTION_H 6 #define BPP_NUMERIC_PROB_MULTIPLEDISCRETEDISTRIBUTION_H 9 #include "../../Exceptions.h" 10 #include "../../Io/OutputStream.h" 11 #include "../ParameterAliasable.h" 12 #include "../VectorTools.h" 107 #endif // BPP_NUMERIC_PROB_MULTIPLEDISCRETEDISTRIBUTION_H Interface for multiple discrete distribution objects.
Extend the Parametrizable interface with support for parameter aliases.
virtual Vdouble getValueCategory(Vdouble &Vvalue) const =0
virtual size_t getNumberOfCategories() const =0
virtual double getProbability(Vdouble &category) const =0
std::vector< double > Vdouble
MultipleDiscreteDistribution * clone() const =0
Create a copy of this object and send a pointer to it.
virtual Vdouble rand() const =0
Draw a random vector from this distribution.
virtual Vdouble randC() const =0
Draw a random vector from the continuous version of this distribution, if it exists.
MultipleDiscreteDistribution()
virtual ~MultipleDiscreteDistribution()