|
mapgd
0.4
A program for the Maximum-likelihood analysis of population genomic data.
|
A class that returns the binomial coefficient or the pdf the binomial distribution. Not Log. More...
#include <binomial.h>
Public Member Functions | |
| binomial (const float_t &p) | |
| ~binomial (void) | |
| The constructor can be called with a float_t to specify the probability of success. | |
| uint32_t | fact (const uint32_t &) |
| Returns n factorial. | |
| uint32_t | binom_coef (const uint32_t &, const uint32_t &) |
| Returns the binomial coefficent. | |
Private Attributes | |
| std::vector< uint32_t > | fact_vector |
| The vector that stores look up values for the binomial coefficent. | |
| float_t | p_ |
| The probability of success. | |
A class that returns the binomial coefficient or the pdf the binomial distribution. Not Log.
1.8.6