GNU g++  v5.2.1
GNU Standard C++
Collaboration diagram for Continuous Distributions:

Uniform discrete distribution for random numbers. A discrete random distribution on the range $[min, max]$ with equal probability throughout the range.

The type of the parameters of the distribution.

The type of the range of the distribution.

Constructs a uniform distribution object.

Gets the inclusive lower bound of the distribution range.

Gets the inclusive upper bound of the distribution range.

Resets the distribution state.

Does nothing for the uniform integer distribution.

Gets a uniformly distributed random number in the range $(min, max)$.

Gets a uniform random number in the range $[0, n)$.

This function is aimed at use with std::random_shuffle.

Inserts a uniform_int random number distribution __x into the output stream os.

Parameters
__osAn output stream.
__xA uniform_int random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts a uniform_int random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA uniform_int random number generator engine.
Returns
The input stream with __x extracted or in an error state.

A Bernoulli random number distribution.

Generates a sequence of true and false values with likelihood $ p $ that true will come up and $ (1 - p) $ that false will appear.

Constructs a Bernoulli distribution with likelihood p.

Parameters
__p[IN] The likelihood of a true result being returned. Must be in the interval $ [0, 1] $.

Gets the p parameter of the distribution.

Resets the distribution state.

Does nothing for a Bernoulli distribution.

Gets the next value in the Bernoullian sequence.

Inserts a bernoulli_distribution random number distribution __x into the output stream __os.

Parameters
__osAn output stream.
__xA bernoulli_distribution random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts a bernoulli_distribution random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA bernoulli_distribution random number generator engine.
Returns
The input stream with __x extracted or in an error state.

A discrete geometric random number distribution.

The formula for the geometric probability mass function is $ p(i) = (1 - p)p^{i-1} $ where $ p $ is the parameter of the distribution.

Gets the distribution parameter p.

Inserts a geometric_distribution random number distribution __x into the output stream __os.

Parameters
__osAn output stream.
__xA geometric_distribution random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts a geometric_distribution random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA geometric_distribution random number generator engine.
Returns
The input stream with __x extracted or in an error state.

A discrete Poisson random number distribution.

The formula for the Poisson probability mass function is $ p(i) = \frac{mean^i}{i!} e^{-mean} $ where $ mean $ is the parameter of the distribution.

Gets the distribution parameter mean.

Inserts a poisson_distribution random number distribution __x into the output stream __os.

Parameters
__osAn output stream.
__xA poisson_distribution random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts a poisson_distribution random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA poisson_distribution random number generator engine.
Returns
The input stream with __x extracted or in an error state.

A discrete binomial random number distribution.

The formula for the binomial probability mass function is $ p(i) = \binom{n}{i} p^i (1 - p)^{t - i} $ where $ t $ and $ p $ are the parameters of the distribution.

Gets the distribution t parameter.

Gets the distribution p parameter.

Inserts a binomial_distribution random number distribution __x into the output stream __os.

Parameters
__osAn output stream.
__xA binomial_distribution random number distribution.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts a binomial_distribution random number distribution __x from the input stream __is.

Parameters
__isAn input stream.
__xA binomial_distribution random number generator engine.
Returns
The input stream with __x extracted or in an error state.