negative_binomial_distribution::negative_binomial_distribution
Constructs the distribution.
negative_binomial_distribution(result_type k0 = 1,
double p0 = 0.5);
explicit negative_binomial_distribution(const param_type& par0);
Parameters
k0
The k distribution parameter.p0
The p distribution parameter.par0
The parameter package used to construct the distribution.
Remarks
Precondition: 0.0 < k0 && 0.0 < p0 && p0 <= 1.0
The first constructor constructs an object whose stored value stored_p holds the value p0 and whose stored value stored_k holds the value k0.
The second constructor constructs an object whose stored parameters are initialized from par0.
Requirements
Header: <random>
Namespace: std