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 (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
5032  : _Par(_M0, _N0)
5033  { // construct
5034  }
param_type _Par
Definition: random:5121
template<class _Ty = double>
fisher_f_distribution< _Ty >::fisher_f_distribution ( const param_type _Par0)
inlineexplicit
5037  : _Par(_Par0)
5038  { // construct from parameter package
5039  }
param_type _Par
Definition: random:5121

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
5111  { // return next value
5112  _Ty _Px, _V1, _V2;
5113  _V1 = (_Ty)_Par0._Mx * _Ty(0.5);
5114  _V2 = (_Ty)_Par0._Nx * _Ty(0.5);
5115  _Beta_distribution<_Ty> _Dist(_V1, _V2);
5116  _Px = _Dist(_Eng);
5117 
5118  return ((_V2 / _V1) * (_Px / (_Ty(1) - _Px)));
5119  }
Definition: random:4921
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& fisher_f_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
5091  { // read state from _Istr
5092  _Ty _M0;
5093  _Ty _N0;
5094  _Istr >> _M0 >> _N0;
5095  _Par._Init(_M0, _N0);
5096  return (_Istr);
5097  }
param_type _Par
Definition: random:5121
void _Init(_Ty _M0, _Ty _N0)
Definition: random:5016
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
5103  { // write state to _Ostr
5104  _Ostr << ' ' << _Par._Mx << ' ' << _Par._Nx;
5105  return (_Ostr);
5106  }
param_type _Par
Definition: random:5121
_Ty _Mx
Definition: random:5026
_Ty _Nx
Definition: random:5027
template<class _Ty = double>
_Ty fisher_f_distribution< _Ty >::m ( ) const
inline
5042  { // return m value
5043  return (_Par.m());
5044  }
_Ty m() const
Definition: random:5006
param_type _Par
Definition: random:5121
template<class _Ty = double>
result_type() fisher_f_distribution< _Ty >::max ( ) const
inline
5067  { // get largest possible result
5068  return ((numeric_limits<result_type>::max)());
5069  }
Definition: limits:101
template<class _Ty = double>
result_type() fisher_f_distribution< _Ty >::min ( ) const
inline
5062  { // get smallest possible result
5063  return (result_type(0));
5064  }
_Ty result_type
Definition: random:4985
template<class _Ty = double>
_Ty fisher_f_distribution< _Ty >::n ( ) const
inline
5047  { // return n value
5048  return (_Par.n());
5049  }
_Ty n() const
Definition: random:5011
param_type _Par
Definition: random:5121
template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
5077  { // return next value
5078  return (_Eval(_Eng, _Par));
5079  }
param_type _Par
Definition: random:5121
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:5110
template<class _Ty = double>
template<class _Engine >
result_type fisher_f_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
5083  { // return next value, given parameter package
5084  return (_Eval(_Eng, _Par0));
5085  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:5110
template<class _Ty = double>
param_type fisher_f_distribution< _Ty >::param ( ) const
inline
5052  { // return parameter package
5053  return (_Par);
5054  }
param_type _Par
Definition: random:5121
template<class _Ty = double>
void fisher_f_distribution< _Ty >::param ( const param_type _Par0)
inline
5057  { // set parameter package
5058  _Par = _Par0;
5059  }
param_type _Par
Definition: random:5121
template<class _Ty = double>
void fisher_f_distribution< _Ty >::reset ( )
inline
5072  { // clear internal state
5073  }

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: