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

Class template binomial_distribution

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

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 template binomial_distribution

boost::random::binomial_distribution

Synopsis

// In header: <boost/random/binomial_distribution.hpp>
template<typename IntType = int, typename RealType = double> 
class binomial_distribution {
public:
  // types
  typedef IntType  result_type;
  typedef RealType input_type; 
  // member classes/structs/unions
  class param_type {
  public:
    // types
    typedef binomial_distribution distribution_type;
    // construct/copy/destruct
    explicit param_type(IntType = 1, RealType = 0.5);
    // public member functions
    IntType t() const;
    RealType p() 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 > &, param_type &);
    friend bool operator==(const param_type &, const param_type &);
    friend bool operator!=(const param_type &, const param_type &);
  };
  // construct/copy/destruct
  explicit binomial_distribution(IntType = 1, RealType = 0.5);
  explicit binomial_distribution(const param_type &);
  // public member functions
  template<typename URNG> IntType operator()(URNG &) const;
  template<typename URNG> IntType operator()(URNG &, const param_type &) const;
  IntType t() const;
  RealType p() const;
  IntType min() const;
  IntType max() const;
  param_type param() const;
  void param(const param_type &);
  void reset();
  // friend functions
  template<typename CharT, typename Traits> 
    friend std::basic_ostream< CharT, Traits > & 
    operator<<(std::basic_ostream< CharT, Traits > &, 
               const binomial_distribution &);
  template<typename CharT, typename Traits> 
    friend std::basic_istream< CharT, Traits > & 
    operator>>(std::basic_istream< CharT, Traits > &, binomial_distribution &);
  friend bool operator==(const binomial_distribution &, 
                         const binomial_distribution &);
  friend bool operator!=(const binomial_distribution &, 
                         const binomial_distribution &);
};

Description

Дистрибутив бинарных опционов представляет собой целое ценное распределение с двумя параметрами: t и p. Значения распределения находятся в пределах диапазона [0,t].

Функция распределения .

Алгоритм используется алгоритм BTRD, описанный в

«The generation of binomial random variates», Wolfgang Hormann, Journal of Statistical Computation and Simulation, Volume 46, Issue 1 & 2 April 1993, pages 101 - 110

binomial_distribution public construct/copy/destruct

  1. эксплицит >биномы_распределения(IntType = 1, RealType p = 0>>>>5>>>>>>32>Построить <333>3333>>
  2. explicit binomial_ Distribution(const param_type & param);

    Конструировать <2123>binomial_ Distribution объект из параметров.

binomial_distribution public member functions

  1. template<typename URNG> IntType оператор()(URNG & urng> const;

    Вариации вариат по распределенному.

  2. <0m>template<typename URNG> IntType оператор()(URNG urng, consvaritпарам_тип

  3. IntType t() const;

    Возвращает параметр t распространения.

  4. RealType p() const;

    Возвращает параметр p распространения.

  5. IntType min() const;

    Возвращает наименьшее значение, которое может произвести дистрибутив.

  6. IntType max() const;

    Returns the largest value that the distribution can produce.

  7. param_type param() const;

  8. void param(const param_type & param);

    Параметры распределения.

  9. void перезагрузка();

    Эффекты: последующее использование дистрибутива не зависит от значений, произведенных любым двигателем до ссылки на сброс.

binomial_distribution friend functions

  1. > > >> >> >>>> >> >>>>> >> >> >> > > >>>>>>

  2. > > >>> >>> >>> >>>> > >>> >> > > >>>>

  3. подруга bool оператор(const binomial_ distributionion & lhs, const _const binomial_ Distribution & rhs;

  4. подруга bool оператор!=(const binomial_ Distribution & lhs, const const binomial_ Distribution & rhs;


PrevUpHomeNext

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




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



:: Главная :: Reference ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 19:06:42/0.00730299949646/0