std::piecewise_constant_distribution<RealType>:: piecewise_constant_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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
piecewise_constant_distribution::piecewise_constant_distribution
|
||||
| Generation | ||||
| Characteristics | ||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
piecewise_constant_distribution
(
)
;
|
(1) | (начиная с C++11) |
|
template
<
class
InputIt1,
class
InputIt2
>
piecewise_constant_distribution
(
InputIt1 first_i, InputIt1 last_i,
|
(2) | (начиная с C++11) |
|
template
<
class
UnaryOperation
>
piecewise_constant_distribution
(
std::
initializer_list
<
RealType
>
ilist_i,
|
(3) | (начиная с C++11) |
|
template
<
class
UnaryOperation
>
piecewise_constant_distribution
(
std::
size_t
nw,
|
(4) | (начиная с C++11) |
|
explicit
piecewise_constant_distribution
(
const
param_type
&
param
)
;
|
(5) | (начиная с C++11) |
Создает новый объект распределения с кусочно-постоянной плотностью.
[
first_i
,
last_i
)
и соответствующей последовательности весов, начинающейся с
first_w
.
Параметры
| first_i | - | итератор, инициализированный началом последовательности интервалов |
| last_i | - | итератор, инициализированный позицией за концом последовательности интервалов |
| first_w | - | итератор, инициализированный началом последовательности плотностей (весов) |
| ilist_i | - | initializer_list, предоставляющий последовательность интервалов |
| fw | - | функция double(double), предоставляющая плотности |
| nw | - | количество плотностей |
| xmin | - | нижняя граница последовательности интервалов |
| xmax | - | верхняя граница последовательности интервалов |
| param | - | набор параметров распределения |