-
void SRANDGEOMETRICREFERENCE(float *p, float *ref, rng_int_t *lref, rng_int_t *info)#
-
void DRANDGEOMETRICREFERENCE(double *p, double *ref, rng_int_t *lref, rng_int_t *info)#
-
void srandgeometricreference_(float *p, float *ref, rng_int_t *lref, rng_int_t *info)#
-
void drandgeometricreference_(double *p, double *ref, rng_int_t *lref, rng_int_t *info)#
-
void srandgeometricreference(float p, float *ref, rng_int_t *lref, rng_int_t *info)#
-
void drandgeometricreference(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 geometric distribution via calls to drandgeneraldiscrete.
- Parameters:
p – [in] Distribution parameter, EPS < p <= 1.0 where EPS is the machine precision
ref – [out] Reference vector, ref(lref)
lref – [inout] On Entry: Either -1, or Length of ref. lref >= RNG_INT_T(30/p)+8 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 -3 = Error in parameter, abs(info)