TABLE OF CONTENTS
CmiscUtils/dnegbin [ Functions ]
NAME
dnegbin --- negative binomial density
FUNCTION
Compute the density of a NB(r,p) evaluated at x.
SYNOPSIS
642 static inline double dnegbin(double x, double r, double p)
SOURCE
646 { 647 double out = gammafn(x+r)/( dfactorial(x))/gammafn(r)*pow(p,r)*pow(1-p,x); 648 return out; 649 }