std::negative_binomial_distribution<IntType>:: p, k
From cppreference.net
<
cpp
|
numeric
|
random
|
negative binomial distribution
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pseudo-random number generation
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::negative_binomial_distribution
| Member functions | ||||
| Generation | ||||
| Characteristics | ||||
|
negative_binomial_distribution::p
negative_binomial_distribution::k
|
||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
double
p
(
)
const
;
|
(1) | (seit C++11) |
|
IntType k
(
)
const
;
|
(2) | (seit C++11) |
Gibt die Parameter zurück, mit denen die Verteilung konstruiert wurde.
1)
Gibt den
p
-Verteilungsparameter zurück. Er definiert die Wahrscheinlichkeit, dass ein Versuch
true
erzeugt. Der Standardwert ist
0.5
.
2)
Gibt den
k
-Verteilungsparameter zurück. Er definiert die Anzahl der gewünschten Ergebnisse. Der Standardwert ist
1
.
Parameter
(keine)
Rückgabewert
1)
Der
p
Verteilungsparameter.
2)
Der
k
Verteilungsparameter.
Siehe auch
|
(C++11)
|
ruft das Verteilungsparameterobjekt ab oder legt es fest
(öffentliche Elementfunktion) |