std::piecew...ls,densities(3)
β¨ 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:
- The list of boundaries of the intervals.
- 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
- 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