GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
binomial.h File Reference
#include "gennExport.h"

Go to the source code of this file.

Functions

GENN_EXPORT unsigned int binomialInverseCDF (double cdf, unsigned int n, double p)
 

Function Documentation

◆ binomialInverseCDF()

GENN_EXPORT unsigned int binomialInverseCDF ( double  cdf,
unsigned int  n,
double  p 
)

Evaluates the inverse CDF of the binomial distribution directly from the definition The calculation is done mostly in the log domain except for the final accumulation of the probabilities