STD::PIECEWISE_CONSTANT_DISTRIBUTION::PARAM_TYPE(3)
π 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 (__bfirstto__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 aninitializer_listof 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 astd::vector< double >πstd::vector< _RealType > intervals () constβ hands you back the intervals as astd::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__p1and__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