|
Infinity Engine v0.6.20
C++ API Documentation
|
Parameter set for the distribution. More...
#include <PRNGDistribution.hpp>
Public Types | |
| using | distribution_type = BinomialDistribution< IntType > |
Public Member Functions | |
| param_type () | |
| Default constructor. Creates parameters for single trial (t=1, p=0.5). | |
| param_type (IntType t, double p=0.5) | |
| Constructs parameters. | |
| IntType | t () const |
| Gets the number of trials. | |
| 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 number of trials and success probability.
| using Infinity::Engine::BinomialDistribution< IntType >::param_type::distribution_type = BinomialDistribution<IntType> |
|
inline |
Default constructor. Creates parameters for single trial (t=1, p=0.5).
|
inlineexplicit |
Constructs parameters.
| t | Number of trials (must be >= 0) |
| p | Probability of success per trial, must be in [0, 1] |
|
inline |
Gets the success probability.
|
inline |
Gets the number of trials.
|
friend |
|
friend |