public member function
<random>

std::negative_binomial_distribution::k

result_type k() const;
Distribution parameter k
Returns the parameter k associated with the negative_binomial_distribution.

This parameter represents the number of unsuccessful trials that stops the count of successful Bernoulli-distributed experiments each value generated by operator() is said to simulate.

This parameter is set on construction as the first argument.

Parameters

none

Return value

Distribution parameter k.
result_type is a member type, defined as an alias of the first class template parameter (IntType).

Complexity

Constant.

See also