A drop in replacement for std::bernoulli_distribution.
Synopsis
Declared in <absl/random/bernoulli_distribution.h>
class bernoulli_distribution;
Description
It guarantees that (given a perfect UniformRandomBitGenerator) the acceptance probability is exactly equal to the given double.
The implementation assumes that double is IEEE754.
Types
Name |
Description |
The parameter set of the distribution. |
Type Aliases
Name |
Description |
The type of the values produced by the distribution. |
Member Functions
Name |
Description |
|
Constructors |
Returns the largest value the distribution can produce. |
|
Returns the smallest value the distribution can produce. |
|
Function call operators |
|
Returns the acceptance probability. |
|
|
|
Resets the internal state of the distribution. |
Friends
Name |
Description |
Compares two distributions for inequality. |
|
Compares two distributions for equality. |
Created with MrDocs