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