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

Class param_type

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Class template negative_binomial_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::negative_binomial_distribution::param_type

Synopsis

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

class param_type {
public:
  // types
  typedef negative_binomial_distribution distribution_type;
  // construct/copy/destruct
  explicit param_type(IntType = 1, RealType = 0.5);
  // public member functions
  IntType k() 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 &);
};

Description

param_type public construct/copy/destruct

  1. <
    explicitparam_type(IntTypek=1,RealTypep=0.5);
    >

    Постройте<param_type>объект.<k>и<p>— параметры распределения.

    Требуется: k >=0 && 0<= p<= 1

param_type public member functions

  1. <
    IntTypek()const;
    >

    Возвращает<k>параметр распределения.

  2. <
    RealTypep()const;
    >

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

param_type friend functions

  1. <
    template<typenameCharT,typenameTraits>
     friendstd::basic_ostream<CharT,Traits>&
     operator<<(std::basic_ostream<CharT,Traits>&os,
                constparam_type&param);
    >

    Записывает параметры распределения на<std::ostream>.

  2. <
    template<typenameCharT,typenameTraits>
     friendstd::basic_istream<CharT,Traits>&
     operator>>(std::basic_istream<CharT,Traits>&is,param_type&param);
    >

    Считывает параметры распределения из<std::istream>

    .
  3. <
    friendbooloperator==(constparam_type&lhs,constparam_type&rhs);
    >

    Возвращается истинно, если параметры имеют одинаковые значения.

  4. <
    friendbooloperator!=(constparam_type&lhs,constparam_type&rhs);
    >

    Возвращается истинно, если параметры имеют разные значения.


PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 09:37:23/0.0060470104217529/0