Share via


piecewise_constant_distribution::densities

Returns the stored densities for the distribution.

std::vector<double> densities() const;

Remarks

The member function returns the stored value stored_p, with each element stored_p[I] divided by stored_x[I + 1] - stored_x[I].

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

piecewise_constant_distribution Class