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

 fisher_f_distribution (_Ty _M0=_Ty(1), _Ty _N0=_Ty(1))
 
 fisher_f_distribution (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
5215  : _Par(_M0, _N0)
5216  { // construct
5217  }
param_type _Par
Definition: random:5304
template<class _Ty = double>
fisher_f_distribution< _Ty >::fisher_f_distribution ( param_type  _Par0)
inlineexplicit
5220  : _Par(_Par0)
5221  { // construct from parameter package
5222  }
param_type _Par
Definition: random:5304

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
5294  { // return next value
5295  _Ty _Px, _V1, _V2;
5296  _V1 = (_Ty)_Par0._Mx * _Ty(0.5);
5297  _V2 = (_Ty)_Par0._Nx * _Ty(0.5);
5298  _Beta_distribution<_Ty> _Dist(_V1, _V2);
5299  _Px = _Dist(_Eng);
5300 
5301  return ((_V2 / _V1) * (_Px / (_Ty(1) - _Px)));
5302  }
Definition: random:5104
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& fisher_f_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
5274  { // read state from _Istr
5275  _Ty _M0;
5276  _Ty _N0;
5277  _Istr >> _M0 >> _N0;
5278  _Par._Init(_M0, _N0);
5279  return (_Istr);
5280  }
param_type _Par
Definition: random:5304
void _Init(_Ty _M0, _Ty _N0)
Definition: random:5199
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
5286  { // write state to _Ostr
5287  _Ostr << ' ' << _Par._Mx << ' ' << _Par._Nx;
5288  return (_Ostr);
5289  }
param_type _Par
Definition: random:5304
_Ty _Mx
Definition: random:5209
_Ty _Nx
Definition: random:5210
template<class _Ty = double>
_Ty fisher_f_distribution< _Ty >::m ( ) const
inline
5225  { // return m value
5226  return (_Par.m());
5227  }
_Ty m() const
Definition: random:5189
param_type _Par
Definition: random:5304
template<class _Ty = double>
result_type() fisher_f_distribution< _Ty >::max ( ) const
inline
5250  { // get largest possible result
5251  return ((numeric_limits<result_type>::max)());
5252  }
Definition: limits:79
template<class _Ty = double>
result_type() fisher_f_distribution< _Ty >::min ( ) const
inline
5245  { // get smallest possible result
5246  return (result_type(0));
5247  }
_Ty result_type
Definition: random:5168
template<class _Ty = double>
_Ty fisher_f_distribution< _Ty >::n ( ) const
inline
5230  { // return n value
5231  return (_Par.n());
5232  }
_Ty n() const
Definition: random:5194
param_type _Par
Definition: random:5304
template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
5260  { // return next value
5261  return (_Eval(_Eng, _Par));
5262  }
param_type _Par
Definition: random:5304
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:5293
template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
5266  { // return next value, given parameter package
5267  return (_Eval(_Eng, _Par0));
5268  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:5293
template<class _Ty = double>
param_type fisher_f_distribution< _Ty >::param ( ) const
inline
5235  { // return parameter package
5236  return (_Par);
5237  }
param_type _Par
Definition: random:5304
template<class _Ty = double>
void fisher_f_distribution< _Ty >::param ( const param_type _Par0)
inline
5240  { // set parameter package
5241  _Par = _Par0;
5242  }
param_type _Par
Definition: random:5304
template<class _Ty = double>
void fisher_f_distribution< _Ty >::reset ( )
inline
5255  { // clear internal state
5256  }

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: