Refactor edoBinomialMulti to allow more complex data structures

Refactor distribution, sampler and estimator related to the multi-binomial distribution.
This introduce tomic methods which may be overloaded for data structures more complex than eoReal of vector of bool (the
default implentation).
This commit is contained in:
Johann Dreo 2013-04-18 10:11:32 +02:00
commit 3067f3f8e4
3 changed files with 89 additions and 42 deletions

View file

@ -49,6 +49,13 @@ public:
edoBinomialMulti( T initial_probas )
: T(initial_probas) {}
/** Initialize all the probabilities to a constant
*
* 0.5 by default
*/
edoBinomialMulti( unsigned int rows, unsigned int cols, double proba=0.5 )
: T::Constant(rows,cols,proba) {}
/** Constructor without any assumption.
*/
edoBinomialMulti() {}