|
  
grand
Format: grand( mean, n )
Arguments: (real) mean Optional mean time
between events; default = 1
(int) n Optional number of events;
default = 1
Returns: (real) Pseudo-random number drawn from a Gamma
distribution
Description: Numbers returned by the grand
primitive represent the time required for a certain number of
events to occur given the mean time between events. For example,
the time required for a certain number of customers to arrive.
The result returned by grand is always a positive number.
If n = 1, grand returns a number from an
exponential distribution.
Examples: grand = exponential
distribution with a mean of 1
grand(3) = exponential
distribution with a mean of 3
grand(2,5) = random number
representing the time required for 5 events to occur where the
mean time between events is 2, PDF graphed below
See Also: rand, drand, trand, nrand, lrand, brand, prand, betarand, crand, setrand, correlate
|