std::cauchy...distribution(3)
π NAME π
std::cauchy_distribution::cauchy_distribution β ok so this is the constructor of cauchy_distribution, straight outta the C++ Standard Library (that's the manual this page lives in, bestie). It's literally the same name twice because constructors are like that. π
β¨ Synopsis β¨
cauchy_distribution() : cauchy_distribution(0.0) {} (1)
(since C++11)
explicit cauchy_distribution( RealType a, RealType b = 1.0 ); (2)
(since C++11)
explicit cauchy_distribution( const param_type& params ); (3)
(since C++11)
So there's three flavors of this icon, and every single one of them has been around (since C++11) β vintage but still slaying. π«Ά
πΈ DESCRIPTION πΈ
Constructs a new distribution object. That's the whole vibe β you're making a fresh cauchy_distribution. π¦
- Number (1) is the default one, and it just delegates:
cauchy_distribution() : cauchy_distribution(0.0) {}. - Number (2) uses
aandbas the distribution parameters. - Number (3) uses
paramsas the distribution parameters.
π PARAMETERS π
aβ theadistribution parameter, aka the location. πbβ thebdistribution parameter, aka the scale. πparamsβ the distribution parameter set. π
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Not me reading the patch notes retroactively π β yes, they went back and fixed old standards, periodt.
P0935R0β applied to C++11 β behavior as published: the default constructor wasexplicit; correct behavior: madeimplicit. So if you were out here treating it like it needed an explicit cast, that's the glow-up right there. β¨
ngl theexplicitβimplicitthing is the whole drama of this page, and it's giving "we fixed it after the fact" energy. Keep it in mind if you're reading ancient C++11-era code, bestie. π
And that's a wrap, iykyk π β this lil page came from http://cppreference.com, dated 2024.06.10, and it's the std::cauchy...distribution(3) manual page. 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