-
void SRANDGAMMA(rng_int_t *n, float *a, float *b, rng_int_t *state, float *x, rng_int_t *info)#
-
void DRANDGAMMA(rng_int_t *n, double *a, double *b, rng_int_t *state, double *x, rng_int_t *info)#
-
void srandgamma_(rng_int_t *n, float *a, float *b, rng_int_t *state, float *x, rng_int_t *info)#
-
void drandgamma_(rng_int_t *n, double *a, double *b, rng_int_t *state, double *x, rng_int_t *info)#
-
void srandgamma(rng_int_t n, float a, float b, rng_int_t *state, float *x, rng_int_t *info)#
-
void drandgamma(rng_int_t n, double a, double b, rng_int_t *state, double *x, rng_int_t *info)#
Returns a vector of double precision pseudo-random numbers from exponential distribution.
- Parameters:
n – [in] Number of values to return, n > 0
a – [in] First parameter of the distribution, a > 0
b – [in] Second parameter of the distribution, b > 0
state – [inout] On Entry: Current state of the base generator being used. state must have first been initialized with a call to drandinitialize On Exit: State of generator after n- values are generated
x – [out] Vector of n- values from the gamma distribution, x(n)
info – [out]
Error code
0 = Everything OK
-1 to - 4 = Error in parameter, abs(info)