mercredi 7 novembre 2018

Producing random variates distributed hypergeometrically

How can we generate random variates for a hypergeometric distribution in C++? Unfortunately, the standard library does not supply a std::hypergeometric_distribution. There is a boost::math::hypergeometric_distribution; however, it appears that it cannot be used for generating random variates.




Aucun commentaire:

Enregistrer un commentaire