Namespaces
Variants
Actions

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

From cppreference.com
 
C++
 
Numerics library
 
Pseudo-random number generation
 
std::piecewise_constant_distribution
 
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.

[edit] Parameters

(none)

[edit] Return value

The distribution parameters:

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

[edit] Complexity

Constant.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant