std::lognor...distribution(3)
bestie, welcome to the std::lognor...distribution(3) page from the C++ Standard Libary manual π
β¨ Todayβs main character is std::lognormal_distribution::lognormal_distribution, and no cap, itβs just the constructor.
π NAME π
std::lognormal_distribution::lognormal_distribution β yep, the constructorβs name is literally std::lognormal_distribution::lognormal_distribution. Thatβs the whole vibe π
π« Synopsis π«
lognormal_distribution() : lognormal_distribution(0.0) {} (1)
(since C++11)
explicit lognormal_distribution( RealType m, RealType s = 1.0 ); (2)
(since C++11)
explicit lognormal_distribution( const param_type& params ); (3)
(since C++11)
Okay so this constructs a new distribution object. The overloads are giving:
2) Uses m and s as the distribution parameters.
3) Uses params as the distribution parameters.
All three are (since C++11), bestie β noted, slay β¨
πΈ Parameters πΈ
mβ themdistribution parameter (log-scale) π¦sβ thesdistribution parameter (shape) πparamsβ the distribution parameter set π
π©Ή Defect reports π©Ή
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Yes, retroactively β not me making up lore π
- DR
P0935R0- Applied to:
C++11 - Behavior as published: default constructor was
explicit - Correct behavior: made
implicit
- Applied to:
source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::lognor...distribution(3) β love u bestie, go construct something iconic π«Άπ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms