Scythe-1.0.3
template<class RNGTYPE>
double scythe::rng< RNGTYPE >::rnchypgeom ( double  m1,
double  n1,
double  n2,
double  psi,
double  delta 
) [inline]

Generate a non-central hypergeometric disributed random variate.

This function returns a pseudo-random variate drawn from the non-centrial hypergeometric distribution described by the number of positive outcomes m1, the two group size parameters n1 and n2, and the odds ratio psi.

Parameters:
m1The number of positive outcomes in both groups.
n1The size of group one.
n2The size of group two.
psiThe odds ratio
deltaThe precision.
Exceptions:
scythe_convergence_error(Level 0)