public member function
<random>

std::piecewise_linear_distribution::densities

vector<result_type> densities() const;
Densities
Returns a vector with the probability densities of each of the distribution subinterval bounds.

The sequence of densities depend on the weights specified on construction: Each subinterval bound is assigned a probability density proportional to its weight, in such a way that the integral that covers all possible values is exactly 1.0.

There is no way to retrieve the specific weights used on construction, but only these derived densities.

Parameters

none

Return value

A vector with the probabilities of each subinterval.
result_type is a member type, defined as an alias of the first class template parameter (RealType).

Complexity

Constant.

See also