On this page
std::piecewise_linear_distribution<RealType>::piecewise_linear_distribution
|
(1) | (since C++11) |
|
(2) | (since C++11) |
|
(3) | (since C++11) |
|
(4) | (since C++11) |
|
(5) | (since C++11) |
Constructs new piecewise linear distribution object.
1) Constructs a distribution object with n = 1, ρ0 = 1, b0 = 0, and b1 = 1.
2) Constructs a distribution object from iterators over the interval sequence
[
first_i
,
last_i
)
and a matching weight sequence starting at first_w
.
3) Constructs a distribution object where the intervals are taken from the initializer list
ilist
and the weights generated by the function fw
.
4) Constructs a distribution object with the
fw
intervals distributed uniformly over [xmin, xmax]
.
5) Constructs a distribution object initialized with the parameters
param
.
Parameters
first_i | - | iterator initialized to the start of the interval sequence |
last_i | - | iterator initialized to one-past-the-end of the interval sequence |
first_w | - | iterator initialized to the start of the density (weight) sequence |
ilist | - | initializer_list yielding the interval sequence |
fw | - | double(double) function yielding the densities |
nw | - | the number of densities |
xmin | - | the lower bound of the interval sequence |
xmax | - | the upper bound of the interval sequence |
parm | - | the distribution parameter set |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/random/piecewise_linear_distribution/piecewise_linear_distribution