std::chi_sq...distribution(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 n as the distribution parameter; since C++11.
  • (3) β€” uses params as the distribution parameter; since C++11.

πŸŽ€ Parameters πŸŽ€

  • n β€” the n distribution 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 to C++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