Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

RandomDoubleT< RK > Class Template Reference

#include <abkrand.h>

Inheritance diagram for RandomDoubleT< RK >:

Inheritance graph
[legend]
Collaboration diagram for RandomDoubleT< RK >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RandomDoubleT (double _lowerBdry, double _upperBdry, unsigned seedN=UINT_MAX, Verbosity verb=Verbosity("silent"))
 RandomDoubleT (double _lowerBdry, double _upperBdry, const char *locIdent, unsigned counterOverride=UINT_MAX, Verbosity verb=Verbosity("silent"))
 operator double ()
unsigned operator() (unsigned N)

Protected Member Functions

unsigned _getUnsignedRand ()
double _getDoubleRand ()

Protected Attributes

double _dLowerB
double _dUpperB
double _dDelta
unsigned _lowerB
unsigned _upperB
unsigned _delta

template<class RK>
class RandomDoubleT< RK >


Constructor & Destructor Documentation

template<class RK>
RandomDoubleT< RK >::RandomDoubleT double  _lowerBdry,
double  _upperBdry,
unsigned  seedN = UINT_MAX,
Verbosity  verb = Verbosity("silent")
[inline]
 

Definition at line 344 of file abkrand.h.

00346                                                          :
00347                   RandomNumberGeneratorT<RK>(_lowerBdry,_upperBdry,seedN,verb) {};

template<class RK>
RandomDoubleT< RK >::RandomDoubleT double  _lowerBdry,
double  _upperBdry,
const char *  locIdent,
unsigned  counterOverride = UINT_MAX,
Verbosity  verb = Verbosity("silent")
[inline]
 

Definition at line 349 of file abkrand.h.

00351                                                          :
00352                   RandomNumberGeneratorT<RK>(_lowerBdry,_upperBdry,
00353                                              locIdent,counterOverride,verb) {};
    operator double() {return RandomNumberGeneratorT<RK>::_getDoubleRand();}


Member Function Documentation

template<class RK>
double RandomNumberGeneratorT< RK >::_getDoubleRand  )  [inline, protected, inherited]
 

Definition at line 62 of file abkrand_templ.cxx.

References RandomNumberGeneratorT< RK >::_dDelta, and RandomNumberGeneratorT< RK >::_dLowerB.

Referenced by RandomDoubleT< RK >::operator double().

00063 {
00064 return RK::_getRawDouble()*_dDelta +_dLowerB;
00065 }

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_getUnsignedRand  )  [inline, protected, inherited]
 

Definition at line 55 of file abkrand_templ.cxx.

References RandomNumberGeneratorT< RK >::_delta, and RandomNumberGeneratorT< RK >::_lowerB.

Referenced by RandomUnsignedT< RK >::operator unsigned().

00056 {
00057   return _lowerB + RK::_getRawUnsigned() % _delta;
00058 }

template<class RK>
RandomDoubleT< RK >::operator double  )  [inline]
 

Definition at line 354 of file abkrand.h.

References RandomNumberGeneratorT< RK >::_getDoubleRand().

Here is the call graph for this function:

template<class RK>
unsigned RandomNumberGeneratorT< RK >::operator() unsigned  N  )  [inline, inherited]
 

Definition at line 299 of file abkrand.h.

References parquetfp::N.

00299 {return RK::_getRawUnsigned()%N;}


Member Data Documentation

template<class RK>
double RandomNumberGeneratorT< RK >::_dDelta [protected, inherited]
 

Definition at line 258 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getDoubleRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_delta [protected, inherited]
 

Definition at line 259 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getUnsignedRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
double RandomNumberGeneratorT< RK >::_dLowerB [protected, inherited]
 

Definition at line 258 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getDoubleRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
double RandomNumberGeneratorT< RK >::_dUpperB [protected, inherited]
 

Definition at line 258 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_lowerB [protected, inherited]
 

Definition at line 259 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getUnsignedRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_upperB [protected, inherited]
 

Definition at line 259 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().


The documentation for this class was generated from the following file:
Generated on Mon Apr 25 01:15:18 2005 for Parquete by doxygen 1.3.2