00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _BINOMIALRNG_H
00019 #define _BINOMIALRNG_H
00020
00021 #include "randnum.h"
00022 #include "../basecode/header.h"
00023 #include "RandGenerator.h"
00024 #include "Binomial.h"
00025
00026 class BinomialRng: public RandGenerator
00027 {
00028 public:
00029 BinomialRng();
00030 void setN(double n);
00031 double getN() const;
00032 void setP(double p);
00033 double getP() const;
00034 virtual void vReinit( const Eref& e, ProcPtr p);
00035
00036 static const Cinfo * initCinfo();
00037 private:
00038 bool isNSet_;
00039 unsigned long n_;
00040 bool isPSet_;
00041 double p_;
00042 bool isModified_;
00043 };
00044
00045 #endif