Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class param_type

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Class template hyperexponential_distribution

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class param_type

boost::random::hyperexponential_distribution::param_type

Synopsis

// In header: <boost/random/hyperexponential_distribution.hpp>

class param_type {
public:
  // types
  typedef hyperexponential_distribution distribution_type;
  // construct/copy/destruct
  param_type();
  template<typename ProbIterT, typename RateIterT> 
    param_type(ProbIterT, ProbIterT, RateIterT, RateIterT);
  template<typename ProbRangeT, typename RateRangeT> 
    param_type(ProbRangeT const &, RateRangeT const &, 
               typename boost::disable_if_c< boost::has_pre_increment< ProbRangeT >::value||boost::has_pre_increment< RateRangeT >::value >::type * = 0);
  template<typename RateIterT> 
    param_type(RateIterT, RateIterT, 
               typename boost::enable_if_c< boost::has_pre_increment< RateIterT >::value >::type * = 0);
  template<typename RateRangeT> param_type(RateRangeT const &);
  param_type(std::initializer_list< RealT >, std::initializer_list< RealT >);
  param_type(std::initializer_list< RealT >);
  // public member functions
  std::vector< RealT > probabilities() const;
  std::vector< RealT > rates() const;
  // friend functions
  template<typename CharT, typename Traits> 
    friend std::basic_ostream< CharT, Traits > & 
    operator<<(std::basic_ostream< CharT, Traits > &, const param_type &);
  template<typename CharT, typename Traits> 
    friend std::basic_istream< CharT, Traits > & 
    operator>>(std::basic_istream< CharT, Traits > &, const param_type &);
  friend bool operator==(const param_type &, const param_type &);
  friend bool operator!=(const param_type &, const param_type &);
};

Description

Параметры гиперэкспоненциального распределения.

фазный вектор вероятности и вектор rate гиперэкспоненциального распределения.

[ORIG_BEGIN]

Constructs a param_type with the default parameters of the distribution.

[ORIG_END] -->
  • template<typename ProbIterT, typename RateIterT> 
      param_type(ProbIterT prob_first, ProbIterT prob_last, RateIterT rate_first, 
                 RateIterT rate_last);

    Constructs a param_type from the phase probability vector and rate vector parameters of the distribution.

    The phase probability vector parameter is given by the range defined by [prob_first, prob_last) iterator pair, and the rate vector parameter is given by the range defined by [rate_first, rate_last) iterator pair.

    References:

    1. ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014

    Параметры:

    prob_first

    prob_first

    [ORIG_END] -->

    Итератор к началу диапазона неотрицательных реальных элементов, представляющих фазовые вероятности; если элементы не суммируют до 1, они нормализуются.

    prob_last

    Итератор до окончания диапазона неотрицательных реальных элементов, представляющих фазовые вероятности; если элементы не суммируют до 1, они нормализуются.

    rate_first

    Итератор к началу диапазона неотрицательных реальных элементов, представляющих ставки.

    rate_last

    Итератор до окончания диапазона неотрицательных реальных элементов, представляющих ставки.

  • Параметры шаблона:

    ProbIterT

    ProbIterT

    [ORIG_END] -->

    Must соответствует требованиям InputIterator концепции (ISO,2014,sec. 24.2.3 [input.iterators]).

    RateIterT

    Must соответствует требованиям InputIterator концепции (ISO,2014,sec. 24.2.3 [input.iterators])

  • template<typename ProbRangeT, typename RateRangeT> 
      param_type(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 param_type from the phase probability vector and rate vector parameters of the 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]Note

    The final disable_if parameter is an implementation detail that differentiates between this two argument constructor and the iterator-based two argument constructor described below.

    Параметры:

    prob_range

    The range of non-negative real elements representing the phase probabilities; if elements don't sum to 1, they are normalized.

    rate_range

    The range of positive real elements representing the rates.

    Параметры шаблона:

    ProbRangeT

    Must meet the requirements of Range concept.

    RateRangeT

    Must meet the requirements of Range concept.

  • template<typename RateIterT> 
      param_type(RateIterT rate_first, RateIterT rate_last, 
                 typename boost::enable_if_c< boost::has_pre_increment< RateIterT >::value >::type * = 0);

    Constructs a param_type from the rate vector parameter of the distribution and with equal phase probabilities.

    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 ).

    [Note]Note

    The final disable_if parameter is an implementation detail that differentiates between this two argument constructor and the range-based two argument constructor described above.

    References:

    1. ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014

    Параметры:

    rate_first

    Итератор к началу диапазона неотрицательных реальных элементов, представляющих ставки.

    rate_last

    Итератор до окончания диапазона неотрицательных реальных элементов, представляющих ставки.

    Параметры шаблона:

    RateIterT

    Must соответствует требованиям InputIterator концепции (ISO,2014,sec. 24.2.3 [input.iterators]).

  • template<typename RateRangeT> param_type(RateRangeT const & rate_range);

    Constructs a param_type from the "rates" parameters of the distribution and with equal phase probabilities.

    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 ).

    Параметры:

    rate_range

    The range of positive real elements representing the rates.

    Параметры шаблона:

    RateRangeT

    Must meet the requirements of Range concept.

  • param_type(std::initializer_list< RealT > l1, 
               std::initializer_list< RealT > l2);

    Constructs a param_type from the phase probability vector and rate vector parameters of the 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.

    References:

    1. ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014

    Параметры:

    l1

    l1

    [ORIG_END] -->

    Список инициализаторов для инициализации вектора вероятностей фазы.

    l2

    Инициализаторский список для инициализации вектора скорости.

  • Строит param_type от rate вектор параметр распределения и с равными фазовыми вероятностями.

    The rate вектор параметр brace-init-list (ISO,2014,sec. 8.5.4 [dcl.init.list]), определяемый

    l1, и Ссылки:

    1. ISO, ISO/IEC 14882-2014: Информационные технологии - Языки программирования - C++, 2014

      Constructs a param_type from the rate vector parameter of the distribution and with equal phase probabilities.

      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 of the rate vector and with each element set to ).

      References:

      1. ISO, ISO/IEC 14882-2014: Information technology - Programming languages - C++, 2014

        [ORIG_END] -->

      Параметры:

      l1

      Инициализаторский список для инициализации вектора скорости.

    param_type public member functions

    1. std::vector< RealT > probabilities() const;

      Gets the phase probability vector parameter of the distribtuion.

      [Note]Note

      The returned probabilities are the normalized version of the ones passed at construction time.

      Returns:

      The phase probability vector parameter of the distribution.

    2. std::vector< RealT > rates() const;

      Gets the rate vector parameter of the distribtuion.

      Returns:

      The rate vector parameter of the distribution.

    param_type friend functions

    1. template<typename CharT, typename Traits> 
        friend std::basic_ostream< CharT, Traits > & 
        operator<<(std::basic_ostream< CharT, Traits > & os, 
                   const param_type & param);

      Writes a param_type to a std::ostream.

    2. Reads a param_type от std::istream.

      Reads a param_type from a std::istream.

      [ORIG_END] -->
    3. friend bool operator==(const param_type & lhs, const param_type & rhs);

      Returns true if the two sets of parameters are the same.

    4. Правда возвратится, если два набора параметров разные.

      Returns true if the two sets of parameters are the different.

      [ORIG_END] -->

    PrevUpHomeNext

    Статья Class param_type раздела The Boost C++ Libraries BoostBook Documentation Subset Class template hyperexponential_distribution может быть полезна для разработчиков на c++ и boost.




    Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



    :: Главная :: Class template hyperexponential_distribution ::


    реклама


    ©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
    Top.Mail.Ru

    Время компиляции файла: 2024-08-30 11:47:00
    2025-05-19 20:58:08/0.010590076446533/1