Class param_type
boost::random::cauchy_distribution::param_type
Synopsis
class param_type {
public:
typedef cauchy_distribution distribution_type;
explicit param_type(RealType = 0.0, RealType = 1.0);
RealType median() const;
RealType sigma() const;
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
явноparam_type(RealType)Медиана=0.0,RealTypeСигма=1.0;
Конструирует параметры распределения коши.
param_type
public member functions
Реальный типмедианаконст;
Возвращает медиану распределения.
RealTypeсигмаconst;
возвращает сигма-параметр распределения.
RealTypeaconst;
Возвращает медиану распределения.
RealTypebconst;
Возвращает параметр сигмы распределения.
param_type
friend functions
шаблонТиповое имяЧарТдругЧарТ[Записывает параметры на std::ostream.
шаблон<имя типаимя типадругstdbasic_istream<] ::CharTCharTCharTCharTconstparam_type
[1 Считывает параметры из std::istream.
другбоолоператор==констпарам_тип&амп;лхс,констпарам_типпарам_тип&амп;рхс;
Возвращается истинно, если два набора параметров равны.
другboolоператор!=constparam_type&lhs,constparam_type&rhs]
Возвращается верно, если два набора параметров различны.