Changeset 308


Ignore:
Timestamp:
May 3, 2005, 8:22:00 PM (16 years ago)
Author:
Peter
Message:

get Poisson distributed random number added

Location:
trunk/lib/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility/random_singleton.cc

    r301 r308  
    3232
    3333
    34 // Functions (A-Z)
    35 //////////////////
    3634void random_singleton::set_seed( const int& seed )
    3735{
     
    5755}
    5856
     57/**
     58double random_singleton::get_poisson(const double m) const
     59{
     60 
     61}
     62*/
     63
    5964}} // of namespace utility and namespace theplu
  • trunk/lib/utility/random_singleton.h

    r303 r308  
    9191   
    9292
    93     /**
    94   See get_uniform_int()!
     93    ///
     94    /// @brief random number from Poisson distribution
     95    /// @todo
     96    inline u_int get_poisson(const double m) const
     97    { return gsl_ran_poisson(r_, m); }
     98   
     99    /**
     100        @See get_uniform_int()!
    95101    */
    96102    inline u_long get_uniform_min() const;
     
    98104
    99105    /**
    100   See get_uniform_int()!
     106        @See get_uniform_int()!
    101107    */
    102108    inline u_long get_uniform_max() const;
Note: See TracChangeset for help on using the changeset viewer.