std::chi_sq...distribution(3)
π NAME π
okay so this is std::chi_sq...distribution(3), a page from the C++ Standard Libary manual (yes bestie, Libary exactly like that β we do not edit the header π). The star of the show is:
std::chi_squared_distribution::chi_squared_distributionβstd::chi_squared_distribution::chi_squared_distribution
That's the constructor page, and it is lowkey serving main character energy. periodt π
β¨ Synopsis β¨
It constructs a new distribution object. Here are the exact signatures, since C++11 and everything:
chi_squared_distribution() : chi_squared_distribution(1.0) {} (1)
(since C++11)
explicit chi_squared_distribution( RealType n ); (2)
(since C++11)
explicit chi_squared_distribution( const param_type& params ); (3)
(since C++11)
- (1) β the default constructor, exactly as written above;
since C++11. - (2) β uses
nas the distribution parameter;since C++11. - (3) β uses
paramsas the distribution parameter;since C++11.
π Parameters π
nβ thendistribution parameter (degrees of freedom).paramsβ the distribution parameter set.
π©Ή Defect reports π©Ή
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR
P0935R0β applied toC++11; behavior as published: default constructor was explicit; correct behavior: made implicit.
source/version + date sign-off: http://cppreference.com Β· 2024.06.10 Β· page std::chi_sq...distribution(3) β that's the footer, bestie, and we're obsessed with the transparency. πβ¨π«Ά
π¦ 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