A RetroSearch Logo

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

Search Query:

Showing content from https://cplusplus.com/reference/random/piecewise_constant_distribution/intervals/ below:

public member function

<random>

std::piecewise_constant_distribution::intervals
vector<result_type> intervals() const;

Intervals

Returns a vector with the subinterval bounds.

The subintervals are consecutive, and each inner bound signals where one interval ends and where the next begins, with the first and last elements of the vector denoting the limits of the entire interval of values the distribution can produce.

Each interval is assumed to be closed on its lower bound and open on its upper bound: [bi,bi+1).

The size of the vector is the number of intervals plus one.



Parameters none

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

Complexity Constant.

See also
piecewise_constant_distribution::(ctor)
Construct piecewise constant distribution (public member function)
piecewise_constant_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