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:
parent
63e0b26186
commit
3067f3f8e4
3 changed files with 89 additions and 42 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue