-
void SRANDBINOMIALREFERENCE(rng_int_t *m, float *p, float *ref, rng_int_t *lref, rng_int_t *info)#
-
void DRANDBINOMIALREFERENCE(rng_int_t *m, double *p, double *ref, rng_int_t *lref, rng_int_t *info)#
-
void srandbinomialreference_(rng_int_t *m, float *p, float *ref, rng_int_t *lref, rng_int_t *info)#
-
void drandbinomialreference_(rng_int_t *m, double *p, double *ref, rng_int_t *lref, rng_int_t *info)#
-
void srandbinomialreference(rng_int_t m, float p, float *ref, rng_int_t *lref, rng_int_t *info)#
-
void drandbinomialreference(rng_int_t m, double p, double *ref, rng_int_t *lref, rng_int_t *info)#
Setsup a double precision reference vector for generating a vector of random variates from a binomial distribution via calls to drandgeneraldiscrete.
- Parameters:
m – [in] Number of trials, m >= 0
p – [in] Probability of success, 0 <= p < 1
ref – [out] Reference vector, ref(lref)
lref – [inout] On Entry: Either -1, or Length of ref. lref >= 30+20*SQRT(m*p*(1-p)) On Exit: If lref = -1 then lref is set to a recommended value and the function returns; otherwise lref is not altered
info – [out]
Error code
1 = Everything OK, but reference vector not set up due to lref being -1 on entry
0 = Everything OK
-1 to -4 = Error in parameter, abs(info)