cpp/numeric/random/discrete distribution/discrete distribution

Constructs a new distribution object.

@1@ Default constructor. Constructs the distribution with a single weight $p = {1}$. This distribution will always generate.

@2@ Constructs the distribution with weights in the range. If, the effects are the same as of the default constructor.

@3@ Constructs the distribution with weights in. Effectively calls.

@4@ Constructs the distribution with weights that are generated using function. Each of the weights is equal to $w i = unary_op(xmin + δ(i + 0.5))$, where $δ =$ and $i ∈ {0, ..., count − 1}$. and must be such that $δ > 0$. If the effects are the same as of the default constructor.

@5@ Constructs the distribution with as the distribution parameters.