std::piecew...ls,densities(3)

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

✨ NAME ✨

okay so bestie, this page is literally all about std::piecewise_constant_distribution::intervals,densities β€” both functions sharing one iconic, extremely long name. It’s from the C++ Standard Library manual, and yes, the name is giving β€œI have main character energy and also a comma.” πŸ’…


🌸 Synopsis 🌸

std::vector<RealType> intervals() const; (1) (since C++11)
std::vector<RealType> densities() const; (2) (since C++11)

These two are how you peek at the distribution parameters. 🫢

Number (1) is the intervals one β€” it returns the list of boundaries of the intervals. Number (2) is the densities one β€” it returns the list of probability densities of the intervals. Both are const, both are since C++11, and both are lowkey serving exactly what they say on the tin. ✨


🫢 Parameters 🫢

(none) β€” literally none, bestie. Not a single argument. Clean. Fresh. No notes. πŸŽ€


πŸŽ€ Return value πŸŽ€

The distribution parameters, bestie:

  1. The list of boundaries of the intervals.
  2. The list of probability densities of the intervals.

Like, that’s the whole vibe. πŸ’–


πŸ’… Complexity πŸ’…

Constant. No long wait, no dramatic buildup β€” it’s giving instant, periodt. ⭐


mwah πŸ’‹ β€” source: http://cppreference.com, dated 2024.06.10. Stan the C++ Standard Library for me, ok? πŸ’œ

πŸ“¦ where this page comes from