Previous: , Up: Random Number Generators   [Contents][Index]


9.7 Detailed listing of RNGs

To save space in the below list, template parameters have been omitted and only constructors are listed. The notation [a,b] means an interval which includes the endpoints a and b; (a,b) is an interval which does not include the endpoints.

9.7.1 random/uniform.h

Uniform<>()

Continuous uniform distribution on [0,1).

UniformClosedOpen<>()

Continuous uniform distribution on [0,1). Same as Uniform<>.

UniformClosed<>()

Continuous uniform distribution on [0,1].

UniformOpen<>()

Continuous uniform distribution on (0,1).

UniformOpenClosed<>()

Continuous uniform distribution on (0,1].

9.7.2 random/normal.h

NormalUnit<>()

Continuous normal distribution with mean 0 and variance 1.

Normal<>(T mean, T standardDeviation)

Continuous normal distribution with specified mean and standard deviation.

9.7.3 random/exponential.h

ExponentialUnit<>()

Continuous exponential distribution with mean 1.

Exponential<>(T mean)

Continuous exponential distribution with specified mean.

9.7.4 random/beta.h

Beta<>(T a, T b)

Beta distribution with parameters a and b. The mean of the distribution is a/(a+b) and its variance is ab/((a+b)^2(a+b+1)). Use the method setParameters(T a, T b) to change the parameters.

9.7.5 random/chisquare.h

ChiSquare<>(T df)

\chi^2 distribution with df degrees of freedom. The parameter df must be positive. Use the method setDF(T df) to change the degrees of freedom.

9.7.6 random/gamma.h

Gamma<>(T mean)

Gamma distribution with specified mean. The mean must be positive. Use the method setMean(T mean) to change the mean.

9.7.7 random/F.h

F<>(T numeratorDF, T denominatorDF)

F distribution with numerator and denominator degrees of freedom specified. Both these parameters must be positive. Use setDF(T dfn, T dfd) to change the degrees of freedom.

9.7.8 random/discrete-uniform.h

DiscreteUniform<>(T n)

Discrete uniform distribution over 0, 1, \ldots, n-1.


Previous: , Up: Random Number Generators   [Contents][Index]