A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/random/piecewise_linear_distribution/densities/ below:

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
piecewise_linear_distribution::(ctor)
Construct piecewise linear distribution (public member function)
piecewise_linear_distribution::param
Distribution parameters (public member function)

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