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

Classes

struct  param_type
 

Public Types

typedef extreme_value_distribution< _Ty > _Myt
 
typedef _Ty result_type
 

Public Member Functions

 extreme_value_distribution (_Ty _A0=_Ty(0), _Ty _B0=_Ty(1))
 
 extreme_value_distribution (param_type _Par0)
 
_Ty a () const
 
_Ty b () 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 extreme_value_distribution<_Ty> extreme_value_distribution< _Ty >::_Myt
template<class _Ty = double>
typedef _Ty extreme_value_distribution< _Ty >::result_type

Constructor & Destructor Documentation

template<class _Ty = double>
extreme_value_distribution< _Ty >::extreme_value_distribution ( _Ty  _A0 = _Ty(0),
_Ty  _B0 = _Ty(1) 
)
inlineexplicit
4518  : _Par(_A0, _B0)
4519  { // construct
4520  }
param_type _Par
Definition: random:4604
template<class _Ty = double>
extreme_value_distribution< _Ty >::extreme_value_distribution ( param_type  _Par0)
inlineexplicit
4523  : _Par(_Par0)
4524  { // construct from parameter package
4525  }
param_type _Par
Definition: random:4604

Member Function Documentation

template<class _Ty = double>
template<class _Engine >
result_type extreme_value_distribution< _Ty >::_Eval ( _Engine &  _Eng,
const param_type _Par0 
) const
inlineprivate
4599  { // generate pseudo-random value
4600  _Ty _Px = _NRAND(_Eng, _Ty);
4601  return (_Par0._Ax - _Par0._Bx * _CSTD log(-_CSTD log(_Px)));
4602  }
float log(float _X) __GPU_ONLY
Calculates the base-e logarithm of the argument
Definition: amp_math.h:774
#define _NRAND(eng, resty)
Definition: random:74
#define _CSTD
Definition: yvals.h:559
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& extreme_value_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
4577  { // read state from _Istr
4578  _Ty _A0;
4579  _Ty _B0;
4580  _In(_Istr, _A0);
4581  _In(_Istr, _B0);
4582  _Par._Init(_A0, _B0);
4583  return (_Istr);
4584  }
param_type _Par
Definition: random:4604
basic_istream< _Elem, _Traits > & _In(basic_istream< _Elem, _Traits > &_Is, _Ty &_Dx)
Definition: random:151
void _Init(_Ty _A0, _Ty _B0)
Definition: random:4504
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& extreme_value_distribution< _Ty >::_Write ( basic_ostream< _Elem, _Traits > &  _Ostr) const
inline
4590  { // write state to _Ostr
4591  _Out(_Ostr, _Par._Ax);
4592  _Out(_Ostr, _Par._Bx);
4593  return (_Ostr);
4594  }
_Ty _Ax
Definition: random:4512
basic_ostream< _Elem, _Traits > & _Out(basic_ostream< _Elem, _Traits > &_Os, _Ty _Dx)
Definition: random:169
param_type _Par
Definition: random:4604
_Ty _Bx
Definition: random:4513
template<class _Ty = double>
_Ty extreme_value_distribution< _Ty >::a ( ) const
inline
4528  { // return a value
4529  return (_Par.a());
4530  }
_Ty a() const
Definition: random:4494
param_type _Par
Definition: random:4604
template<class _Ty = double>
_Ty extreme_value_distribution< _Ty >::b ( ) const
inline
4533  { // return b value
4534  return (_Par.b());
4535  }
_Ty b() const
Definition: random:4499
param_type _Par
Definition: random:4604
template<class _Ty = double>
result_type() extreme_value_distribution< _Ty >::max ( ) const
inline
4553  { // get largest possible result
4554  return ((numeric_limits<result_type>::max)());
4555  }
Definition: limits:79
template<class _Ty = double>
result_type() extreme_value_distribution< _Ty >::min ( ) const
inline
4548  { // get smallest possible result
4549  return (-(numeric_limits<result_type>::max)());
4550  }
Definition: limits:79
template<class _Ty = double>
template<class _Engine >
result_type extreme_value_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
4563  { // return next value
4564  return (_Eval(_Eng, _Par));
4565  }
param_type _Par
Definition: random:4604
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4598
template<class _Ty = double>
template<class _Engine >
result_type extreme_value_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
4569  { // return next value, given parameter package
4570  return (_Eval(_Eng, _Par0));
4571  }
result_type _Eval(_Engine &_Eng, const param_type &_Par0) const
Definition: random:4598
template<class _Ty = double>
param_type extreme_value_distribution< _Ty >::param ( ) const
inline
4538  { // return parameter package
4539  return (_Par);
4540  }
param_type _Par
Definition: random:4604
template<class _Ty = double>
void extreme_value_distribution< _Ty >::param ( const param_type _Par0)
inline
4543  { // set parameter package
4544  _Par = _Par0;
4545  }
param_type _Par
Definition: random:4604
template<class _Ty = double>
void extreme_value_distribution< _Ty >::reset ( )
inline
4558  { // clear internal state
4559  }

Member Data Documentation

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

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