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

 _RNG_REQUIRE_REALTYPE (chi_squared_distribution, _Ty)
 
 chi_squared_distribution (_Ty _N0=_Ty(1))
 
 chi_squared_distribution (const 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
4648  : _Par(_N0)
4649  { // construct
4650  }
param_type _Par
Definition: random:4725
template<class _Ty = double>
chi_squared_distribution< _Ty >::chi_squared_distribution ( const param_type _Par0)
inlineexplicit
4653  : _Par(_Par0)
4654  { // construct from parameter package
4655  }
param_type _Par
Definition: random:4725

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
4720  { // return pseudo-random value
4721  gamma_distribution<_Ty> _Dist((_Ty)_Par0._Nx * _Ty(0.5), _Ty(2));
4722  return (_Dist(_Eng));
4723  }
Definition: random:3839
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& chi_squared_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
4702  { // read state from _Istr
4703  _Ty _N0;
4704  _Istr >> _N0;
4705  _Par._Init(_N0);
4706  return (_Istr);
4707  }
void _Init(_Ty _N0)
Definition: random:4637
param_type _Par
Definition: random:4725
template<class _Ty = double>
chi_squared_distribution< _Ty >::_RNG_REQUIRE_REALTYPE ( chi_squared_distribution< _Ty >  ,
_Ty   
)
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
4713  { // write state to _Ostr
4714  return (_Ostr << ' ' << _Par._Nx);
4715  }
_Ty _Nx
Definition: random:4644
param_type _Par
Definition: random:4725
template<class _Ty = double>
result_type() chi_squared_distribution< _Ty >::max ( ) const
inline
4678  { // get largest possible result
4679  return ((numeric_limits<result_type>::max)());
4680  }
Definition: limits:102
template<class _Ty = double>
result_type() chi_squared_distribution< _Ty >::min ( ) const
inline
4673  { // get smallest possible result
4675  }
Definition: limits:102
template<class _Ty = double>
_Ty chi_squared_distribution< _Ty >::n ( ) const
inline
4658  { // return n value
4659  return (_Par.n());
4660  }
_Ty n() const
Definition: random:4632
param_type _Par
Definition: random:4725
template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
4688  { // return next value
4689  return (_Eval(_Eng, _Par));
4690  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4719
param_type _Par
Definition: random:4725
template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
4694  { // return next value, given parameter package
4695  return (_Eval(_Eng, _Par0));
4696  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4719
template<class _Ty = double>
param_type chi_squared_distribution< _Ty >::param ( ) const
inline
4663  { // return parameter package
4664  return (_Par);
4665  }
param_type _Par
Definition: random:4725
template<class _Ty = double>
void chi_squared_distribution< _Ty >::param ( const param_type _Par0)
inline
4668  { // set parameter package
4669  _Par = _Par0;
4670  }
param_type _Par
Definition: random:4725
template<class _Ty = double>
void chi_squared_distribution< _Ty >::reset ( )
inline
4683  { // clear internal state
4684  }

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: