piecewise_constant_distribution::param_type
Сохраняет все параметры распределения.
struct param_type { typedef piecewise_constant_distribution<RealType> distribution_type; param_type(); template<class IterI, class IterW> param_type(IterI firstI, IterI lastI, IterW firstW); template<class UnaryOperation> param_type(size_t count, RealType xmin, RealType xmax, UnaryOperation weightfunc); std::vector<RealType> densities() const; std::vector<RealType> intervals() const; ..... bool operator==(const param_type& right) const; bool operator!=(const param_type& right) const; };
Параметры
См. раздел верхнего уровня Класс piecewise_constant_distribution.
Заметки
Предусловие: xmin < xmax
Эту структуру можно передать конструктору класса распределения во время создания экземпляра, функции-члену param() для установки хранимых параметров существующего распределения и operator() для использования вместо хранимых параметров.
Требования
Заголовок: <random>
Пространство имен: std