std::piecewise_constant_distribution<RealType>::intervals, densities

From cppreference.com
 
 
 
Pseudo-random number generation
Uniform random bit generators
Engines and engine adaptors
Non-deterministic generator
Distributions
Uniform distributions
Bernoulli distributions
Poisson distributions
Normal distributions
Sampling distributions
Seed Sequences
(C++11)
C library
 
std::piecewise_constant_distribution
Member functions
Generation
Characteristics
piecewise_constant_distribution::intervalspiecewise_constant_distribution::densities
(C++11)(C++11)
Non-member functions
(C++11)(C++11)(until C++20)
(C++11)(C++11)
 
std::vector<RealType> intervals() const;
(1) (since C++11)
std::vector<RealType> densities() const;
(2) (since C++11)

Returns the distribution parameters.

1) Returns the list of boundaries of the intervals.
2) Returns the list of probability densities of the intervals.

Parameters

(none)

Return value

The distribution parameters:

1) The list of boundaries of the intervals.
2) The list of probability densities of the intervals.

Complexity

Constant.