std::piecewise_linear_distribution<RealType>:: piecewise_linear_distribution
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data-parallel types (
simd
)
(C++26)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
piecewise_linear_distribution::piecewise_linear_distribution
|
||||
| Generation | ||||
| Characteristics | ||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
piecewise_linear_distribution
(
)
;
|
(1) | (since C++11) |
|
template
<
class
InputIt1,
class
InputIt2
>
piecewise_linear_distribution
(
InputIt1 first_i, InputIt1 last_i,
|
(2) | (since C++11) |
|
template
<
class
UnaryOperation
>
piecewise_linear_distribution
(
std::
initializer_list
<
RealType
>
ilist,
|
(3) | (since C++11) |
|
template
<
class
UnaryOperation
>
piecewise_linear_distribution
(
std::
size_t
nw,
|
(4) | (since C++11) |
|
explicit
piecewise_linear_distribution
(
const
param_type
&
parm
)
;
|
(5) | (since C++11) |
Constructs new piecewise linear distribution object.
[
first_i
,
last_i
)
and a matching weight sequence starting at
first_w
.
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 |