STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
fisher_f_distribution< _Ty > Class Template Reference

Classes

struct  param_type
 

Public Types

typedef fisher_f_distribution< _Ty > _Myt
 
typedef _Ty result_type
 

Public Member Functions

 _RNG_REQUIRE_REALTYPE (fisher_f_distribution, _Ty)
 
 fisher_f_distribution (_Ty _M0=_Ty(1), _Ty _N0=_Ty(1))
 
 fisher_f_distribution (const param_type &_Par0)
 
_Ty m () const
 
_Ty n () const
 
param_type param () const
 
void param (const param_type &_Par0)
 
result_type() min () const
 
result_type() max () const
 
void reset ()
 
template<class _Engine >
result_type operator() (_Engine &_Eng) const
 
template<class _Engine >
result_type operator() (_Engine &_Eng, const param_type &_Par0) const
 
template<class _Elem , class _Traits >
basic_istream< _Elem, _Traits > & _Read (basic_istream< _Elem, _Traits > &_Istr)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & _Write (basic_ostream< _Elem, _Traits > &_Ostr) const
 

Private Member Functions

template<class _Engine >
result_type _Eval (_Engine &_Eng, const param_type &_Par0) const
 

Private Attributes

param_type _Par
 

Member Typedef Documentation

template<class _Ty = double>
typedef fisher_f_distribution<_Ty> fisher_f_distribution< _Ty >::_Myt
template<class _Ty = double>
typedef _Ty fisher_f_distribution< _Ty >::result_type

Constructor & Destructor Documentation

template<class _Ty = double>
fisher_f_distribution< _Ty >::fisher_f_distribution ( _Ty  _M0 = _Ty(1),
_Ty  _N0 = _Ty(1) 
)
inlineexplicit
5052  : _Par(_M0, _N0)
5053  { // construct
5054  }
param_type _Par
Definition: random:5141
template<class _Ty = double>
fisher_f_distribution< _Ty >::fisher_f_distribution ( const param_type _Par0)
inlineexplicit
5057  : _Par(_Par0)
5058  { // construct from parameter package
5059  }
param_type _Par
Definition: random:5141

Member Function Documentation

template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::_Eval ( _Engine &  _Eng,
const param_type _Par0 
) const
inlineprivate
5131  { // return next value
5132  _Ty _Px, _V1, _V2;
5133  _V1 = (_Ty)_Par0._Mx * _Ty(0.5);
5134  _V2 = (_Ty)_Par0._Nx * _Ty(0.5);
5135  _Beta_distribution<_Ty> _Dist(_V1, _V2);
5136  _Px = _Dist(_Eng);
5137 
5138  return ((_V2 / _V1) * (_Px / (_Ty(1) - _Px)));
5139  }
Definition: random:4942
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& fisher_f_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
5111  { // read state from _Istr
5112  _Ty _M0;
5113  _Ty _N0;
5114  _Istr >> _M0 >> _N0;
5115  _Par._Init(_M0, _N0);
5116  return (_Istr);
5117  }
param_type _Par
Definition: random:5141
void _Init(_Ty _M0, _Ty _N0)
Definition: random:5036
template<class _Ty = double>
fisher_f_distribution< _Ty >::_RNG_REQUIRE_REALTYPE ( fisher_f_distribution< _Ty >  ,
_Ty   
)
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& fisher_f_distribution< _Ty >::_Write ( basic_ostream< _Elem, _Traits > &  _Ostr) const
inline
5123  { // write state to _Ostr
5124  _Ostr << ' ' << _Par._Mx << ' ' << _Par._Nx;
5125  return (_Ostr);
5126  }
param_type _Par
Definition: random:5141
_Ty _Mx
Definition: random:5046
_Ty _Nx
Definition: random:5047
template<class _Ty = double>
_Ty fisher_f_distribution< _Ty >::m ( ) const
inline
5062  { // return m value
5063  return (_Par.m());
5064  }
_Ty m() const
Definition: random:5026
param_type _Par
Definition: random:5141
template<class _Ty = double>
result_type() fisher_f_distribution< _Ty >::max ( ) const
inline
5087  { // get largest possible result
5088  return ((numeric_limits<result_type>::max)());
5089  }
Definition: limits:102
template<class _Ty = double>
result_type() fisher_f_distribution< _Ty >::min ( ) const
inline
5082  { // get smallest possible result
5083  return (result_type(0));
5084  }
_Ty result_type
Definition: random:5005
template<class _Ty = double>
_Ty fisher_f_distribution< _Ty >::n ( ) const
inline
5067  { // return n value
5068  return (_Par.n());
5069  }
_Ty n() const
Definition: random:5031
param_type _Par
Definition: random:5141
template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
5097  { // return next value
5098  return (_Eval(_Eng, _Par));
5099  }
param_type _Par
Definition: random:5141
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:5130
template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
5103  { // return next value, given parameter package
5104  return (_Eval(_Eng, _Par0));
5105  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:5130
template<class _Ty = double>
param_type fisher_f_distribution< _Ty >::param ( ) const
inline
5072  { // return parameter package
5073  return (_Par);
5074  }
param_type _Par
Definition: random:5141
template<class _Ty = double>
void fisher_f_distribution< _Ty >::param ( const param_type _Par0)
inline
5077  { // set parameter package
5078  _Par = _Par0;
5079  }
param_type _Par
Definition: random:5141
template<class _Ty = double>
void fisher_f_distribution< _Ty >::reset ( )
inline
5092  { // clear internal state
5093  }

Member Data Documentation

template<class _Ty = double>
param_type fisher_f_distribution< _Ty >::_Par
private

The documentation for this class was generated from the following file: