|
Infinity Engine v0.6.20
C++ API Documentation
|
Parameter set for the distribution. More...
#include <PRNGDistribution.hpp>
Public Types | |
| using | distribution_type = BernoulliDistribution |
Public Member Functions | |
| param_type () | |
| Default constructor. Creates parameters for fair coin (p=0.5). | |
| param_type (double p) | |
| Constructs parameters. | |
| double | p () const |
| Gets the success probability. | |
Friends | |
| bool | operator== (const param_type &lhs, const param_type &rhs) |
| bool | operator!= (const param_type &lhs, const param_type &rhs) |
Parameter set for the distribution.
Stores the success probability parameter.
| using Infinity::Engine::BernoulliDistribution::param_type::distribution_type = BernoulliDistribution |
|
inline |
Default constructor. Creates parameters for fair coin (p=0.5).
|
inlineexplicit |
Constructs parameters.
| p | Probability of success, must be in [0, 1] |
|
inline |
Gets the success probability.
|
friend |
|
friend |