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