public member function
<random>
std::piecewise_constant_distribution::densitiesvector<result_type> densities() const;
Densities
Returns a vector with the probability densities of each of the distribution subintervals.Densities represent the probability of the distribution to produce a number in the subinterval divided by the length of that subinterval.
The sequence of densities depend on the weights specified on construction: Each subinterval is assigned a probability density equal to its weight divided by the sum of all weights and the length of the subinterval.
There is no way to retrieve the specific weights used on construction, but only the densities calculated in this way.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4