Class param_type
boost::random::gamma_distribution::param_type
Synopsis
class param_type {
public:
typedef gamma_distribution distribution_type;
param_type(const RealType & = 1.0, const RealType & = 1.0);
RealType alpha() const;
RealType beta() const;
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
- <
param_type(constRealType&alpha=1.0,constRealType&beta=1.0);
>Построение объекта<param_type
>
из параметров «альфа» и «бета».
Требуется: альфа >0 & & бета >0
param_type
public member functions
- <
RealTypealpha()const;
>Возвращает «альфа» параметр распределения.
- <
RealTypebeta()const;
>Возвращает «бета» параметр распределения.
param_type
friend functions
- <
template<typenameCharT,typenameTraits>
friendstd::basic_ostream<CharT,Traits>&
operator<<(std::basic_ostream<CharT,Traits>&os,
constparam_type¶m);
>Записывает параметры в<std::ostream
>
.
- <
template<typenameCharT,typenameTraits>
friendstd::basic_istream<CharT,Traits>&
operator>>(std::basic_istream<CharT,Traits>&is,param_type¶m);
>Считывает параметры из<std::istream
>
.
- <
friendbooloperator==(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если два набора параметров одинаковы.
- <
friendbooloperator!=(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если два набора параметров fo различны.