std::normal_distribution<RealType>:: mean, stddev
From cppreference.net
<
cpp
|
numeric
|
random
|
normal 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::normal_distribution
| Member functions | ||||
|
(C++11)
|
||||
| Generation | ||||
|
(C++11)
|
||||
| Characteristics | ||||
|
normal_distribution::mean
normal_distribution::stddev
(C++11)
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
RealType mean
(
)
const
;
|
(1) | (seit C++11) |
|
RealType stddev
(
)
const
;
|
(2) | (seit C++11) |
Gibt die Parameter zurück, mit denen die Verteilung konstruiert wurde.
1)
Gibt den Mittelwert
μ
-Verteilungsparameter zurück. Der Mittelwert gibt die Position des Maximums an. Der Standardwert ist
0.0
.
2)
Gibt den Verteilungsparameter für die Standardabweichung
σ
zurück. Der Standardwert ist
1.0
.
Parameter
(keine)
Rückgabewert
1)
Der Mittelwert
μ
Verteilungsparameter.
2)
Der Abweichungsparameter
σ
der Verteilung.
Siehe auch
|
(C++11)
|
ruft die Verteilungsparameterobjekte ab oder legt sie fest
(öffentliche Elementfunktion) |