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
chi_squared_distribution< _Ty > Class Template Reference

Classes

struct  param_type
 

Public Types

typedef chi_squared_distribution< _Ty > _Myt
 
typedef _Ty result_type
 

Public Member Functions

 chi_squared_distribution (_Ty _N0=_Ty(1))
 
 chi_squared_distribution (param_type _Par0)
 
_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 chi_squared_distribution<_Ty> chi_squared_distribution< _Ty >::_Myt
template<class _Ty = double>
typedef _Ty chi_squared_distribution< _Ty >::result_type

Constructor & Destructor Documentation

template<class _Ty = double>
chi_squared_distribution< _Ty >::chi_squared_distribution ( _Ty  _N0 = _Ty(1))
inlineexplicit
4837  : _Par(_N0)
4838  { // construct
4839  }
param_type _Par
Definition: random:4914
template<class _Ty = double>
chi_squared_distribution< _Ty >::chi_squared_distribution ( param_type  _Par0)
inlineexplicit
4842  : _Par(_Par0)
4843  { // construct from parameter package
4844  }
param_type _Par
Definition: random:4914

Member Function Documentation

template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::_Eval ( _Engine &  _Eng,
const param_type _Par0 
) const
inlineprivate
4909  { // return pseudo-random value
4910  gamma_distribution<_Ty> _Dist((_Ty)_Par0._Nx * _Ty(0.5), _Ty(2));
4911  return (_Dist(_Eng));
4912  }
Definition: random:4078
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& chi_squared_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
4891  { // read state from _Istr
4892  _Ty _N0;
4893  _Istr >> _N0;
4894  _Par._Init(_N0);
4895  return (_Istr);
4896  }
void _Init(_Ty _N0)
Definition: random:4826
param_type _Par
Definition: random:4914
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& chi_squared_distribution< _Ty >::_Write ( basic_ostream< _Elem, _Traits > &  _Ostr) const
inline
4902  { // write state to _Ostr
4903  return (_Ostr << ' ' << _Par._Nx);
4904  }
_Ty _Nx
Definition: random:4833
param_type _Par
Definition: random:4914
template<class _Ty = double>
result_type() chi_squared_distribution< _Ty >::max ( ) const
inline
4867  { // get largest possible result
4868  return ((numeric_limits<result_type>::max)());
4869  }
Definition: limits:79
template<class _Ty = double>
result_type() chi_squared_distribution< _Ty >::min ( ) const
inline
4862  { // get smallest possible result
4864  }
Definition: limits:79
template<class _Ty = double>
_Ty chi_squared_distribution< _Ty >::n ( ) const
inline
4847  { // return n value
4848  return (_Par.n());
4849  }
_Ty n() const
Definition: random:4821
param_type _Par
Definition: random:4914
template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
4877  { // return next value
4878  return (_Eval(_Eng, _Par));
4879  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4908
param_type _Par
Definition: random:4914
template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
4883  { // return next value, given parameter package
4884  return (_Eval(_Eng, _Par0));
4885  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4908
template<class _Ty = double>
param_type chi_squared_distribution< _Ty >::param ( ) const
inline
4852  { // return parameter package
4853  return (_Par);
4854  }
param_type _Par
Definition: random:4914
template<class _Ty = double>
void chi_squared_distribution< _Ty >::param ( const param_type _Par0)
inline
4857  { // set parameter package
4858  _Par = _Par0;
4859  }
param_type _Par
Definition: random:4914
template<class _Ty = double>
void chi_squared_distribution< _Ty >::reset ( )
inline
4872  { // clear internal state
4873  }

Member Data Documentation

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

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