|  | 
|      | 
|  | 
| Class template hyperexponential_distributionBoost , The Boost C++ Libraries BoostBook Documentation Subset , Reference
  
   | 
| Параметры: | |
| 
 | |
| 
 | Итератор к началу диапазона неотрицательных реальных элементов, представляющих фазовые вероятности; если элементы не суммируются до 1, они нормализуются. | 
| 
 | Итератор до конца диапазона неотрицательных реальных элементов, представляющих фазовые вероятности; если элементы не суммируются до 1, они нормализуются. | 
| 
 | Итератор к началу диапазона неотрицательных реальных элементов, представляющих ставки. | 
| 
 | Итератор до конца диапазона неотрицательных реальных элементов, представляющих ставки. | 
Параметры шаблонов:
ProbIterT
ProbIterT
Должен соответствовать требованиям концепции InputIterator (ISO,2014, с. 24.2.3 [input.iterators]). 
RateIterT
 Должны соответствовать требованиям концепции InputIterator (ISO,2014, с. 24.2.3 [input.iterators]).
template<typename ProbRangeT, typename RateRangeT> hyperexponential_distribution(ProbRangeT const & prob_range, RateRangeT const & rate_range, typename boost::disable_if_c< boost::has_pre_increment< ProbRangeT >::value||boost::has_pre_increment< RateRangeT >::value >::type * = 0);
Constructs a hyperexponential_distribution
The phase probability vector parameter is given by the range defined by prob_range, and the rate vector parameter is given by the range defined by rate_range.
| ![[Note]](/img/note.png) | Note | 
|---|---|
| The final  | 
| Параметры: | 
 | ||||
| Параметры шаблонов: | 
template<typename RateIterT> hyperexponential_distribution(RateIterT rate_first, RateIterT rate_last, typename boost::enable_if_c< boost::has_pre_increment< RateIterT >::value >::type * = 0);
Constructs a hyperexponential_distribution
The rate vector parameter is given by the range defined by [rate_first, rate_last) iterator pair, and the phase probability vector parameter is set to the equal phase probabilities (i.e., to a vector of the same length  of the rate vector and with each element set to
 of the rate vector and with each element set to  ).
).
| ![[Note]](/img/note.png) | Note | 
|---|---|
| The final  | 
Ссылки:
ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014
| Параметры: | |
| 
 | |
| 
 | Итератор к началу диапазона неотрицательных реальных элементов, представляющих ставки. | 
| 
 | Итератор до конца диапазона неотрицательных реальных элементов, представляющих ставки. | 
Параметры шаблонов:
| 
 | Должен соответствовать требованиям концепции  | 
Поставляет param_typeкод> из параметров «рейт» распределения и с равными фазовыми вероятностями.
The rate option is given by the range defined by rate_range, and the  Phase вектор параметр установлен на равные фазовые вероятности (i.e., к вектору одинаковой длины 
| Параметры: | 
 | ||
| Параметры шаблона: | 
 | 
Constructs a param_type
The rate vector parameter is given by the range defined by rate_range, and the phase probability vector parameter is set to the equal phase probabilities (i.e., to a vector of the same length  of the rate vector and with each element set to
 of the rate vector and with each element set to  ).
).
| Параметры: | 
 | ||
| Параметры шаблонов: | 
 | 
Поставляет hyperexponential_distributionкод> из своих параметров.
| Параметры: | 
 | 
Constructs a hyperexponential_distribution
| Параметры: | 
 | 
hyperexponential_distribution(std::initializer_list< RealT > const & l1, std::initializer_list< RealT > const & l2);
Constructs a hyperexponential_distribution
The phase probability vector parameter is given by the brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]) defined by l1, and the rate vector parameter is given by the brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]) defined by l2.
Ссылки:
ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014
| Параметры: | 
 | 
 Строит hyperexponential_distribution
The brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]), определяемый  l 
Ссылки: ISO, ISO/IEC 14882-2014: Информационные технологии - Языки программирования - C++, 2014 Constructs a  The rate vector parameter is given by the brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]) defined by l1, and the phase probability vector parameter is set to the equal phase probabilities (i.e., to a vector of the same length  Ссылки: ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014 Параметры:   Список инициализаторов для инизиализации вектора скорости.hyperexponential_distribution of the rate vector and with each element set to
 of the rate vector and with each element set to  ).
).l1l1
hyperexponential_distribution public member functionstemplate<typename URNG> RealT operator()(URNG & urng) const;
Gets a random variate distributed according to the hyperexponential distribution.
| Параметры: | 
 | ||
| Параметры шаблонов: | 
 | ||
| Returns: | A random variate distributed according to the hyperexponential distribution. | 
template<typename URNG> RealT operator()(URNG & urng, const param_type & param) const;
Gets a random variate distributed according to the hyperexponential distribution with parameters specified by param.
| Параметры: | 
 | ||||
| Параметры шаблонов: | 
 | ||||
| Returns: | A random variate distributed according to the hyperexponential distribution. distribution with parameters specified by  | 
Возвращает количество фаз распространения.
Returns the number of phases of the distribution.
[ORIG_END] -->std::vector< RealT > probabilities() const;
Returns the phase probability vector parameter of the distribution.
Возвращает параметр rate вектор распространения.
Returns the rate vector parameter of the distribution.
[ORIG_END] -->Возвращает наименьшее значение, которое может произвести дистрибутив.
Returns the smallest value that the distribution can produce.
[ORIG_END] -->Возвращает крупнейшее значение, которое может произвести дистрибутив.
Returns the largest value that the distribution can produce.
[ORIG_END] -->Возвращает параметры распределения.
Returns the parameters of the distribution.
[ORIG_END] -->Задает параметры распределения.
Sets the parameters of the distribution.
[ORIG_END] -->void reset();
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.
hyperexponential_distribution friend functionsНаписать hyperexponential_distributionstd::ostream. 
Writes an hyperexponential_distributionstd::ostream. 
Reads an hyperexponential_distributionstd::istream. 
Reads an hyperexponential_distributionstd::istream. 
friend bool operator==(const hyperexponential_distribution & lhs, const hyperexponential_distribution & rhs);
Returns true if the two instances of hyperexponential_distribution
Правда возвратится, если два экземпляра hyperexponential_distribution
Returns true if the two instances of hyperexponential_distribution
Статья Class template hyperexponential_distribution раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.
| реклама |