Constructs a distribution by sampling a weight function.
Declared in <absl/random/discrete_distribution.h>
template<class UnaryOperation>
explicit
discrete_distribution(
size_t nw,
double xmin,
double xmax,
UnaryOperation fw);
| Name | Description |
|---|---|
| nw | The number of weights to generate. |
| xmin | The lower bound of the sampled interval. |
| xmax | The upper bound of the sampled interval. |
| fw | The unary weight function to sample. |