std::piecewise_constant_distribution
From cppreference.com
Defined in header <random>
|
||
template< class RealType = double > class piecewise_constant_distribution; |
(since C++11) | |
std::piecewise_constant_distribution
produces random floating-point numbers, which are uniformly distributed within each of the several subintervals [bi, bi+1), each with its own weight wi. The set of interval boundaries and the set of weights are the parameters of this distribution.
wi |
S (bi+1 - bi) |
std::piecewise_constant_distribution
satisfies all requirements of RandomNumberDistribution.
Contents |