STD::PIECEWISE_LINEAR_DISTRIBUTION_PARAM_TYPE(3cxx)
πΈ NAME πΈ
This is the 3cxx manual page for std::piecewise_linear_distribution< _RealType >::param_type β the parameter-type era of libstdc++βs random-distribution world. π
Itβs a struct, bestie, and the full template cutie is:
template<typename _RealType = double>
struct std::piecewise_linear_distribution< _RealType >::param_type
β¨ SYNOPSIS β¨
First things first: she lives in <random>.
#include <random>
π Public Types π
typedef piecewise_linear_distribution< _RealType > distribution_typeβ the distribution type tied to this param type, slay. π
π Public Member Functions π
param_typeβ constructor from an iterator range for the breakpoints and an iterator for the weights:
template<typename _InputIteratorB , typename _InputIteratorW >
param_type (_InputIteratorB __bfirst, _InputIteratorB __bend,
_InputIteratorW __wbegin)
param_type (const param_type &)=defaultβ copy constructor, defaulted and iconic. π«Άparam_typeβ constructor from aninitializer_list< _RealType >for breakpoints plus a function for the weights:
template<typename _Func > param_type (initializer_list< _RealType >
__bl, _Func __fw)
param_typeβ constructor from a count, anxmin, anxmax, and a weight function:
template<typename _Func > param_type (size_t __nw, _RealType __xmin,
_RealType __xmax, _Func __fw)
std::vector< double > densities () constβ returns the densities in astd::vector< double >, no cap. π¦std::vector< _RealType > intervals () constβ returns the intervals in astd::vector< _RealType >, periodt. πΈparam_type & operator= (const param_type &)=defaultβ assignment operator, defaulted and doing her little assignment thing. β¨
π¦ Friends π¦
bool operator== (const param_type &__p1, const param_type &__p2)β the equality-comparison bestie. πclass piecewise_linear_distribution< _RealType >β the distribution class herself is a friend. Main character energy, honestly. π
Detailed Description π
The template signature is exactly this:
template<typename _RealType = double>
struct std::piecewise_linear_distribution< _RealType >::param_type
The original description literally says "Parameter type. β yes, with that quote mark right before Parameter, and we are respecting the lore. π
Itβs giving βshort but mysterious.β Do not invent extra behaviour for her; the manpage did not spill more tea. π
Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Source/version tea β: this page comes from libstdc++, generated automatically by Doxygen from the source code, and the manual tag is 3cxx. Date? Not printed on this page, bestie β so sheβs timeless. πβ¨π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms