Search:
Reference
<random>
negative_binomial_distribution
p
public member function
<random>
std::
negative_binomial_distribution
::p
double p() const;
Distribution parameter p
Returns the parameter
p
associated with the
negative_binomial_distribution
.
This parameter represents the probability of success on each of the sequence of independent
Bernoulli-distributed
experiments each value generated by
operator()
is said to simulate.
This parameter is set on
construction
.
Parameters
none
Return value
The probability parameter (
p
) associated with the distribution object.
Complexity
Constant.
See also
negative_binomial_distribution::(ctor)
Construct negative binomial distribution
(public member function)
negative_binomial_distribution::k
Distribution parameter k
(public member function)
negative_binomial_distribution::param
Distribution parameters
(public member function)
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<typeindex>
<typeinfo>
<type_traits>
<utility>
<valarray>
<random>
distributions:
bernoulli_distribution
binomial_distribution
cauchy_distribution
chi_squared_distribution
discrete_distribution
exponential_distribution
extreme_value_distribution
fisher_f_distribution
gamma_distribution
geometric_distribution
lognormal_distribution
negative_binomial_distribution
normal_distribution
piecewise_constant_distribution
piecewise_linear_distribution
poisson_distribution
student_t_distribution
uniform_int_distribution
uniform_real_distribution
weibull_distribution
generators:
default_random_engine
discard_block_engine
independent_bits_engine
knuth_b
linear_congruential_engine
mersenne_twister_engine
minstd_rand
minstd_rand0
mt19937
mt19937_64
random_device
ranlux24
ranlux24_base
ranlux48
ranlux48_base
shuffle_order_engine
subtract_with_carry_engine
other:
generate_canonical
seed_seq
negative_binomial_distribution
negative_binomial_distribution::(ctor)
member functions:
negative_binomial_distribution::k
negative_binomial_distribution::max
negative_binomial_distribution::min
negative_binomial_distribution::operator()
negative_binomial_distribution::p
negative_binomial_distribution::param
negative_binomial_distribution::reset
non-member functions:
operator<<
operator>>
relational operators