Class param_type
boost::random::non_central_chi_squared_distribution::param_type
Synopsis
class param_type {
public:
typedef non_central_chi_squared_distribution distribution_type;
explicit param_type(RealType = 1, RealType = 1);
RealType k() const;
RealType lambda() 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(RealTypek=1,RealTypelambda=1);
>Построение параметров a<non_central_chi_squared_distribution
>.<k
>и<lambda
>являются параметрами распределения.
Требуется: k >0 & & lambda >0
param_type
public member functions
- <
RealTypek()const;
>Возвращает<k
>параметр распределения
- <
RealTypelambda()const;
>Возвращает<lambda
>параметр распределения
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,
constparam_type¶m);
>Считывает параметры распределения из<std::istream
>
.
- <
friendbooloperator==(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если параметры имеют одинаковые значения.
- <
friendbooloperator!=(constparam_type&lhs,constparam_type&rhs);
>Возвращается истинно, если параметры имеют разные значения.