mapgd  0.4
A program for the Maximum-likelihood analysis of population genomic data.
 All Data Structures Functions Variables Friends Groups Pages
Public Member Functions | Private Attributes
binomial Class Reference

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.
 

Detailed Description

A class that returns the binomial coefficient or the pdf the binomial distribution. Not Log.


The documentation for this class was generated from the following files: