|
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_BINOMIAL_H_
2 #define GENESIS_UTILS_MATH_BINOMIAL_H_
129 #endif // include guard
double log_binomial_coefficient(size_t n, size_t k)
Compute the logarithm (base e) of the binomial coefficient, that is n choose k, for two integer numbe...
double log_factorial(size_t n)
Return the logarithm (base e) of the factorial of n, that is log(n!).
double log_binomial_distribution(size_t k, size_t n, double p)
Compute the logarithm (base e) of the probability mass function for a binomial distribution.
size_t binomial_coefficient_int(size_t n, size_t k)
Compute the binomial coefficient, that is n choose k, for two integer numbers.
double binomial_distribution(size_t k, size_t n, double p)
Compute the probability mass function for a binomial distribution.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
double binomial_coefficient(size_t n, size_t k)
Compute the binomial coefficient, that is n choose k, for two integer numbers, for large numbers.