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 (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
4626  : _Par(_N0)
4627  { // construct
4628  }
param_type _Par
Definition: random:4703
template<class _Ty = double>
chi_squared_distribution< _Ty >::chi_squared_distribution ( const param_type _Par0)
inlineexplicit
4631  : _Par(_Par0)
4632  { // construct from parameter package
4633  }
param_type _Par
Definition: random:4703

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
4698  { // return pseudo-random value
4699  gamma_distribution<_Ty> _Dist((_Ty)_Par0._Nx * _Ty(0.5), _Ty(2));
4700  return (_Dist(_Eng));
4701  }
Definition: random:3812
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& chi_squared_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
4680  { // read state from _Istr
4681  _Ty _N0;
4682  _Istr >> _N0;
4683  _Par._Init(_N0);
4684  return (_Istr);
4685  }
void _Init(_Ty _N0)
Definition: random:4615
param_type _Par
Definition: random:4703
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
4691  { // write state to _Ostr
4692  return (_Ostr << ' ' << _Par._Nx);
4693  }
_Ty _Nx
Definition: random:4622
param_type _Par
Definition: random:4703
template<class _Ty = double>
result_type() chi_squared_distribution< _Ty >::max ( ) const
inline
4656  { // get largest possible result
4657  return ((numeric_limits<result_type>::max)());
4658  }
Definition: limits:101
template<class _Ty = double>
result_type() chi_squared_distribution< _Ty >::min ( ) const
inline
4651  { // get smallest possible result
4653  }
Definition: limits:101
template<class _Ty = double>
_Ty chi_squared_distribution< _Ty >::n ( ) const
inline
4636  { // return n value
4637  return (_Par.n());
4638  }
_Ty n() const
Definition: random:4610
param_type _Par
Definition: random:4703
template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
4666  { // return next value
4667  return (_Eval(_Eng, _Par));
4668  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4697
param_type _Par
Definition: random:4703
template<class _Ty = double>
template<class _Engine >
result_type chi_squared_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
4672  { // return next value, given parameter package
4673  return (_Eval(_Eng, _Par0));
4674  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4697
template<class _Ty = double>
param_type chi_squared_distribution< _Ty >::param ( ) const
inline
4641  { // return parameter package
4642  return (_Par);
4643  }
param_type _Par
Definition: random:4703
template<class _Ty = double>
void chi_squared_distribution< _Ty >::param ( const param_type _Par0)
inline
4646  { // set parameter package
4647  _Par = _Par0;
4648  }
param_type _Par
Definition: random:4703
template<class _Ty = double>
void chi_squared_distribution< _Ty >::reset ( )
inline
4661  { // clear internal state
4662  }

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: