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

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

πŸ’… std::piecewise_linear_distribution::intervals,densities πŸ’…

okay so welcome to the C++ Standard Libary manual page β€” section (3) β€” for this two-for-one icon πŸŽ€. it's giving "member functions that just want to hand you the distribution parameters," and honestly? obsessed. let's go ✨.

🌸 NAME 🌸

std::piecewise_linear_distribution::intervals,densities β€” that's the name, bestie. the original lists it twice (once before the dash and once after), so here's your double-name confirmation: std::piecewise_linear_distribution::intervals,densities πŸ’–.

✨ Synopsis ✨

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

Returns the distribution parameters, no cap.

  1. (1) returns the list of boundaries of the intervals.
  2. (2) returns the list of probability densities at the boundaries of the intervals.
both are since C++11, so this is not new-new β€” it's established-icon behavior πŸ‘‘.

πŸ¦‹ Parameters πŸ¦‹

(none) β€” literally none, bestie. no parameters, no arguments, nothing to pass. 🫢

πŸ‘‘ Return value πŸ‘‘

The distribution parameters, periodt:

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

🌈 Complexity 🌈

Linear in the number of intervals in this object. so it grows with the number of intervals in this object β€” no sneaky extra drama πŸ”₯.


with love from std::piecew...ls,densities(3) πŸ’Œ β€” source/version: http://cppreference.com Β· date: 2024.06.10 β€” xoxo, your manual-page bestie πŸ’– mwah!

πŸ“¦ where this page comes from