Class param_type
boost::random::weibull_distribution::param_type
Synopsis
class param_type {
public:
typedef weibull_distribution distribution_type;
explicit param_type(RealType = 1.0, RealType = 1.0);
RealType a() const;
RealType b() 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 > &, const 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
- <
explicitparam_type(RealTypea=1.0,RealTypeb=1.0);
>Построение a<param_type
>
из параметров «a» и «b» распределения.
Требуется: a >0 & & b >0
param_type
public member functions
- <
RealTypea()const;
>Возвращает параметр «а» дистрибуции.
- <
RealTypeb()const;
>Возвращает параметр «b» распределения.
param_type
friend functions
- <
template<typenameCharT,typenameTraits>
friendstd::basic_ostream<CharT,Traits>&
operator<<(std::basic_ostream<CharT,Traits>&os,
constparam_type¶m);
>Пишет<param_type
>
<std::ostream
>.
- <
template<typenameCharT,typenameTraits>
friendstd::basic_istream<CharT,Traits>&
operator>>(std::basic_istream<CharT,Traits>&is,
constparam_type¶m);
>Читает<param_type
>
из<std::istream
>
.
- <
friendbooloperator==(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если два набора параметров одинаковы.
- <
friendbooloperator!=(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если два набора параметров различны.