|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_MATH_DISTRIBUTION_H_
2 #define GENESIS_UTILS_MATH_DISTRIBUTION_H_
94 #endif // include guard
std::vector< size_t > multinomial_distribution(std::vector< size_t > const &p, size_t n)
Select a random sample following a multinomial distribution.
std::vector< size_t > multivariate_hypergeometric_distribution(std::vector< size_t > const &p, size_t n)
Select a random sample following a multivariate hypergeometric distribution.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
size_t hypergeometric_distribution(size_t n1, size_t n2, size_t t)
Select a random sample from a hypergeometric distribution.