Class template laplace_distribution Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference    
  
Class template laplace_distribution boost::random::laplace_distribution
 
Synopsis 
template < typename  RealType =  double >  
class  laplace_distribution  { 
public : 
  
  typedef  RealType  result_type ; 
  typedef  RealType  input_type ;  
  
  class  param_type  { 
  public : 
    
    typedef  laplace_distribution  distribution_type ; 
    
    explicit  param_type ( RealType  =  0 . 0 ,  RealType  =  1 . 0 ) ; 
    
    RealType  mean ( )  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  & ) ; 
  } ; 
  
  explicit  laplace_distribution ( RealType  =  0 . 0 ,  RealType  =  1 . 0 ) ; 
  explicit  laplace_distribution ( const  param_type  & ) ; 
  
  template < typename  URNG>  RealType  operator ( ) ( URNG  & )  const ; 
  template < typename  URNG>  
    RealType  operator ( ) ( URNG  & ,  const  param_type  & )  const ; 
  RealType  mean ( )  const ; 
  RealType  beta ( )  const ; 
  RealType  min ( )  const ; 
  RealType  max ( )  const ; 
  param_type  param ( )  const ; 
  void  param ( const  param_type  & ) ; 
  void  reset ( ) ; 
  
  template < typename  CharT,  typename  Traits>  
    friend  std :: basic_ostream <  CharT ,  Traits  >  &  
    operator << ( std :: basic_ostream <  CharT ,  Traits  >  & ,  
               const  laplace_distribution  & ) ; 
  template < typename  CharT,  typename  Traits>  
    friend  std :: basic_istream <  CharT ,  Traits  >  &  
    operator >> ( std :: basic_istream <  CharT ,  Traits  >  & ,  
               const  laplace_distribution  & ) ; 
  friend  bool  operator == ( const  laplace_distribution  & ,  
                         const  laplace_distribution  & ) ; 
  friend  bool  operator != ( const  laplace_distribution  & ,  
                         const  laplace_distribution  & ) ; 
} ; 
Description 
Распределение лапласа представляет собой реальное распределение с двумя параметрами, средним и бета.
У него есть
laplace_distribution 
        public
       construct/copy/destruct 
 
laplace_distribution public member functions 
<template < typename URNG> RealType operator ( ) ( URNG & urng) const ; Возвращает случайную переменную, распределенную в соответствии с распределением лапласа.
 
<template < typename URNG> 
 RealType operator ( ) ( URNG & urng, const param_type & param) const ; Возвращает случайную вариацию, распределенную согласно распределению лапласа, с параметрами, указанными<param>.
 
<RealType mean ( ) const ; Возвращает «средний» параметр распределения.
 
<RealType beta ( ) const ; Возвращает «бета» параметр распределения.
 
<RealType min ( ) const ; Возвращает наименьшее значение, которое может произвести распределение.
 
<RealType max ( ) const ; Возвращает наибольшую ценность, которую может произвести распределение.
 
<param_type param ( ) const ; Возвращает параметры распределения.
 
<void param ( const param_type & param) ; Устанавливает параметры распределения.
 
<void reset ( ) ; Эффекты: Последующее использование распределения не зависит от значений, произведенных каким-либо двигателем до вызова сброса.
 
  
laplace_distribution friend functions 
<template < typename CharT, typename Traits> 
 friend std :: basic_ostream < CharT , Traits > & 
 operator << ( std :: basic_ostream < CharT , Traits > & os, 
            const laplace_distribution & wd) ; Пишет<laplace_distribution std::ostream>
. 
<template < typename CharT, typename Traits> 
 friend std :: basic_istream < CharT , Traits > & 
 operator >> ( std :: basic_istream < CharT , Traits > & is, 
            const laplace_distribution & wd) ; Читает<laplace_distribution std::istream>
. 
<friend bool operator == ( const laplace_distribution & lhs, 
                      const laplace_distribution & rhs) ; Возвращается истинно, если два экземпляра<laplace_distribution 
 
<friend bool operator != ( const laplace_distribution & lhs, 
                      const laplace_distribution & rhs) ; Возвращается истинно, если два экземпляра<laplace_distribution 
 
  
 
 
Статья Class template laplace_distribution  раздела The Boost C++ Libraries BoostBook Documentation Subset Reference  может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная  :: Reference  ::