Class param_type Boost , The Boost C++ Libraries BoostBook Documentation Subset , Class template beta_distribution
Class param_type
boost::random::beta_distribution::param_type
Synopsis
class param_type {
public :
typedef beta_distribution distribution_type ;
explicit param_type ( RealType = 1 . 0 , 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 > & , 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
<explicit param_type ( RealType alpha= 1 . 0 , RealType beta= 1 . 0 ) ; >Построение<param_type
>
из параметров «альфа» и «бета» распределения.
Требуется: альфа >0, бета >0
param_type
public member functions
<RealType alpha ( ) const ; >Возвращает «альфа» параметр дистрибуции.
<RealType beta ( ) const ; >Возвращает «бета» параметр распределения.
param_type
friend functions
<template < typename CharT, typename Traits>
friend std :: basic_ostream < CharT , Traits > &
operator << ( std :: basic_ostream < CharT , Traits > & os,
const param_type & param) ; >Пишет<param_type
>
<std::ostream
>.
<template < typename CharT, typename Traits>
friend std :: basic_istream < CharT , Traits > &
operator >> ( std :: basic_istream < CharT , Traits > & is,
const param_type & param) ; >Читает<param_type
>
из<std::istream
>
.
<friend bool operator == ( const param_type & lhs, const param_type & rhs) ; >Возвращается истинно, если два набора параметров одинаковы.
<friend bool operator != ( const param_type & lhs, const param_type & rhs) ; >Возвращается истинно, если два набора параметров различны.
Статья Class param_type раздела The Boost C++ Libraries BoostBook Documentation Subset Class template beta_distribution может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Class template beta_distribution ::