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

probability/SBinomialDist.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: SBinomialDist.h,v 1.1 2003/03/12 17:12:38 taeubig Exp $
00008 
00009  Purpose : 
00010 
00011  * #end# ************************************************************* */
00012 
00013 #ifndef SBINOMIALDIST_H
00014 #define SBINOMIALDIST_H
00015 
00016 #include "SProbabilityDist.h"
00017 
00022 class SBinomialDist : public SProbabilityDist  {
00023  public: 
00031   SBinomialDist(int n, double p) :
00032     _n(n), _p(p)
00033   {
00034   };
00035 
00038   SBinomialDist(const SBinomialDist& rU)
00039     { _p = rU._p; }
00040 
00045   virtual double getValue();
00046 
00050   virtual Type getType() const
00051     { return BINOMIAL; };
00052 
00053   virtual double getExpectation() const;
00054   
00055 protected:
00056   // the parameter of the distribution
00057   int _n;
00058   double _p;
00059 
00060 };
00061 
00062 #endif

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