inlib  1.2.0
Public Member Functions
inlib::randf::exp Class Reference

List of all members.

Public Member Functions

 exp (float a_rate=1)
 exp (const exp &a_from)
expoperator= (const exp &a_from)
float shoot () const

Detailed Description

Definition at line 78 of file randf.


Constructor & Destructor Documentation

inlib::randf::exp::exp ( float  a_rate = 1) [inline]

Definition at line 80 of file randf.

:m_rate(a_rate){}
inlib::randf::exp::exp ( const exp a_from) [inline]

Definition at line 82 of file randf.

:m_rate(a_from.m_rate){}

Member Function Documentation

exp& inlib::randf::exp::operator= ( const exp a_from) [inline]

Definition at line 83 of file randf.

{m_rate = a_from.m_rate;return *this;}
float inlib::randf::exp::shoot ( ) const [inline]

Definition at line 85 of file randf.

                      {
    float v;
    do {
      v = m_flat.shoot();
    } while(v<=0);
    return -flog(v)/m_rate;
  }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines