std::fisher...distribution(3)

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

πŸ’… std::fisher_f_distribution::fisher_f_distribution

okay so bestie, welcome to the C++ Standard Library manual page for std::fisher_f_distribution::fisher_f_distribution β€” yes the name is a mouthful, yes it's giving constructor energy, and yes we're gonna get through it together 🫢

This is literally the constructor of std::fisher_f_distribution, and it comes in three iconic flavors. Let's go ✨


✨ SYNOPSIS ✨

fisher_f_distribution() : fisher_f_distribution(1.0) {}         (1)

(since C++11)

explicit fisher_f_distribution( RealType m, RealType n = 1.0 ); (2)

(since C++11)

explicit fisher_f_distribution( const param_type& params );     (3)

(since C++11)


🌸 DESCRIPTION 🌸

Constructs a new distribution object. That's the whole vibe. New object, fresh out the box, main character energy πŸ‘‘

  1. Constructor (1) is the default one β€” and look at it, it's delegating to fisher_f_distribution(1.0). Cute, efficient, no notes πŸ’…
  2. Constructor (2) uses m and n as the distribution parameters.
  3. Constructor (3) uses params as the distribution parameters.

πŸŽ€ PARAMETERS πŸŽ€

  • m β€” the m distribution parameter (degrees of freedom), okurrr
  • n β€” the n distribution parameter (degrees of freedom), not me forgetting these are degrees of freedom 😭
  • params β€” the distribution parameter set, all bundled up like a little gift 🎁

πŸ¦‹ Defect reports πŸ¦‹

so the committee went back and fixed some stuff retroactively β€” these behavior-changing defect reports got applied to previously published C++ standards. time travel but make it standards-compliant ⭐

  • P0935R0 β€” applied to C++11. Behavior as published: the default constructor was explicit. Correct behavior: it was made implicit. slay, honestly πŸ™ˆ

ngl bestie, the whole "applied retroactively to previously published C++ standards" thing is real β€” your old code's behavior can literally change. iykyk πŸ’€

that's the page!! every constructor, every parameter, every defect report β€” all present and accounted for, periodt πŸ’–

source/version and date, as promised: this lil gem is from cppreference.com, dated 2024.06.10, and it's page std::fisher...distribution(3) of the C++ Standard Library manual. kbye, ily, go construct something πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from