std::lognor...distribution(3)

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

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 β€” the m distribution parameter (log-scale) πŸ¦‹
  • s β€” the s distribution 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

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