- Inherits from:
- Object
- Declared in:
- DRndDist.h
Object
|
+---DRndDist
Class Description
The DRndDist class implements pseudo random generators distributions.
- Last modified:
- 05-Jan-2008 (DRndDist.h)
- Random Generator Distribution class methods
- + (double) nextBeta :(id <DRandomable>) rnd :(double) alpha :(double) beta
- Generate a random number with a beta distribution
- Parameters:
- rnd - the uniform random generator
alpha - the alpha parameter (>0)
beta - the beta parameter (>0)
- Returns:
- the random number
- + (unsigned int) nextBinomial :(id <DRandomable>) rnd :(double) p :(unsigned int) n
- Generate a random number with a binomial distribution
- Parameters:
- rnd - the uniform random generator
p - the probability [0,1]
n - the number of trails (0>)
- Returns:
- the random number
- + (double) nextExponential :(id <DRandomable>) rnd :(double) mu
- Generate a random number with an exponential distribution
- Parameters:
- rnd - the random generator
mu - the mean (>0)
- Returns:
- the random number
- + (double) nextGamma :(id <DRandomable>) rnd :(double) alpha :(double) beta
- Generate a random number with a gamma distribution
- Parameters:
- rnd - the uniform random generator
alpha - the alpha parameter (>0)
beta - the beta parameter (>0)
- Returns:
- the random number
- + (double) nextNormal :(id <DRandomable>) rnd :(double) mu :(double) sigma
- Generate a random number with a normal or gaussian distribution
- Parameters:
- rnd - the uniform random generator
mu - the mean
sigma - the standard deviation
- Returns:
- the random number
- + (double) nextPareto :(id <DRandomable>) rnd :(double) alpha : (double) beta
- Generate a random number with a pareto distribution
- Parameters:
- rnd - the uniform random generator
alpha - the scale parameter (>0)
beta - the shape parameter (>0)
- Returns:
- the random number
- + (unsigned int) nextPoisson :(id <DRandomable>) rnd :(double) mu
- Generate a random number with a poisson distribution
- Parameters:
- rnd - the uniform random generator
mu - the mean (>=0)
- Returns:
- the random number
- + (double) nextPosDouble :(id <DRandomable>) rnd
- Generate a positive uniform random number <0,1>
- Parameters:
- rnd - the uniform random genetor
the - positive uniform random number
- + (double) nextUniform :(id <DRandomable>) rnd :(double) start :(double) end
- Generate a random number with a uniform distribution in the range of [start,end>
- Parameters:
- rnd - the uniform random generator
start - the start of the range
end - the end of the range
- Returns:
- the random number
- + (double) nextWeibull :(id <DRandomable>) rnd :(double) alpha :(double) beta
- Generate a random number with a weibull distribution
- Parameters:
- rnd - the uniform random generator
alpha - the scale parameter (0>)
beta - the shape parameter (0>)
- Returns:
- the random number
generated 05-Jan-2008 by ObjcDoc 3.0.0