STD::PIECEWISE_CONSTANT_DISTRIBUTION::PARAM_TYPE(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 4 versions
, in arch rolling, fedora 44

πŸ’– std::piecewise_constant_distribution< _RealType >::param_type πŸ’–

okay bestie, welcome to the libstdc++ Library Functions Manual page for std::piecewise_constant_distribution< _RealType >::param_type β€” yes the name is a whole mouthful, we're gonna say it three times fast and then move on πŸŽ€


✨ NAME ✨

std::piecewise_constant_distribution< _RealType >::param_type β€” the little parameter-bundle struct that lives inside the piecewise constant distribution and holds all its vibes 🌸


✨ SYNOPSIS ✨

#include <random>

πŸ¦‹ Public Types

  • typedef piecewise_constant_distribution< _RealType > distribution_type β€” a lil nickname for the distribution this param_type belongs to, so you don't have to type the whole thing out every single time πŸ’…

🫢 Public Member Functions

  • template<typename _InputIteratorB, typename _InputIteratorW> param_type (_InputIteratorB __bfirst, _InputIteratorB __bend, _InputIteratorW __wbegin) β€” builds a param_type from an iterator range of boundaries (__bfirst to __bend) plus a starting weight iterator (__wbegin), no cap πŸ”₯
  • param_type (const param_type &) = default β€” the copy constructor, and it's defaulted, so copying is literally free ✨
  • template<typename _Func> param_type (initializer_list< _RealType > __bi, _Func __fw) β€” builds one from an initializer_list of boundaries (__bi) and a weight function (__fw) πŸŽ€
  • template<typename _Func> param_type (size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) β€” builds one from a weight count (__nw), a minimum (__xmin), a maximum (__xmax) and a weight function (__fw) 🌈
  • std::vector< double > densities () const β€” hands you back the densities as a std::vector< double > πŸ“
  • std::vector< _RealType > intervals () const β€” hands you back the intervals as a std::vector< _RealType > πŸ’œ
  • param_type & operator= (const param_type &) = default β€” the copy assignment operator, also defaulted, also iconic πŸ‘‘

πŸ’« Friends

  • bool operator== (const param_type &__p1, const param_type &__p2) β€” the friend equality check between two param_types, comparing __p1 and __p2 πŸ’–
  • class piecewise_constant_distribution< _RealType > β€” the friend class, aka the distribution that owns all this ✨

🌟 Detailed Description 🌟

template<typename _RealType = double>
struct std::piecewise_constant_distribution< _RealType >::param_type

Parameter type. that's it, that's the whole description, and honestly? it ate πŸ’…

ngl bestie, this is a parameter type β€” the struct that bundles up the parameters so you can pass them around as one cute little object instead of juggling a million arguments 🫢

πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code. (yes, a robot wrote this and it still served looks πŸ€–βœ¨)


and that's the whole page, bestie β€” mwah πŸ’‹ this was libstdc++'s std::piece...:param_type(3), documented in the Library Functions Manual, generated by Doxygen for libstdc++ from the source code. go forth and distribute, piecewise and constantly πŸŒΈπŸ’–πŸ¦‹

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms