Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

probability/SGeometricDist.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003            Scheduling Simulator
00004         Lehrstuhl f"ur Effiziente Algorithmen
00005            Technische Universit"at M"unchen
00006 
00007  File    : $Id: SGeometricDist.h,v 1.1 2003/03/12 17:12:38 taeubig Exp $
00008 
00009  Purpose : 
00010 
00011  * #end# ************************************************************* */
00012 
00013 #ifndef SGEOMETRICDIST_H
00014 #define SGEOMETRICDIST_H
00015 
00016 #include "SProbabilityDist.h"
00017 
00022 class SGeometricDist : public SProbabilityDist  {
00023 public: 
00032   SGeometricDist(double mean) :
00033     _p(1/mean)
00034   {};
00035 
00038   SGeometricDist(const SGeometricDist& rU)
00039     { _p = rU._p; }
00040 
00045   virtual double getValue();
00046 
00050   virtual Type getType() const
00051     { return GEOMETRIC; };
00052 
00053   virtual double getExpectation() const;
00054 
00055 protected:
00056   // the parameter of the distribution
00057   double _p;
00058 
00059 };
00060 
00061 #endif

Generated on Thu May 22 16:48:09 2003 for Sketch-it! by doxygen1.2.18