Shark Machine Learning Library
  • About Shark
  • Sourceforge
    • Project Summary
    • Downloads
    • Subversion Repository
  • Getting Started
  • Tutorials
  • FAQ
  • Main Modules
    • ReClaM
    • EALib
    • MOO-EALib
    • Fuzzy
  • Tools
    • Mixture
    • Array
    • Rng
    • LinAlg
    • FileUtil
  • Main Page
  • Classes

Poisson.h

Go to the documentation of this file.
00001 //===========================================================================
00042 //===========================================================================
00043 
00044 #ifndef __POISSON_H
00045 #define __POISSON_H
00046 
00047 #include "Rng/RandomVar.h"
00048 
00049 
00050 //===========================================================================
00087 class Poisson : public RandomVar< long >
00088 {
00089 public:
00090 
00093     Poisson(double mean = 0);
00094 
00098     Poisson(double mean, RNG& r);
00099 
00100 
00101 //========================================================================
00120     double mean() const
00121     {
00122         return pMean;
00123     }
00124 
00125 
00126 //========================================================================
00146     void   mean(double newMean)
00147     {
00148         pMean = newMean;
00149     }
00150 
00151 
00154     long operator()(double mean);
00155 
00158     long operator()();
00159 
00162     double p(const long&) const;
00163 
00164 protected:
00165 
00168     double pMean;
00169 };
00170 
00171 #endif  /* !__POISSON_H */
00172 
00173 
00174 
00175 
00176 
00177