00001 /******************************************************************* 00002 * File: GammaRng.h 00003 * Description: 00004 * Author: Subhasis Ray 00005 * E-mail: ray.subhasis@gmail.com 00006 * Created: 2007-11-08 11:53:29 00007 ********************************************************************/ 00008 /********************************************************************** 00009 ** This program is part of 'MOOSE', the 00010 ** Messaging Object Oriented Simulation Environment, 00011 ** also known as GENESIS 3 base code. 00012 ** copyright (C) 2003-2005 Upinder S. Bhalla. and NCBS 00013 ** It is made available under the terms of the 00014 ** GNU General Public License version 2 00015 ** See the file COPYING.LIB for the full notice. 00016 **********************************************************************/ 00017 00018 #ifndef _GAMMARNG_H 00019 #define _GAMMARNG_H 00020 #include "randnum.h" 00021 #include "basecode/header.h" 00022 #include "RandGenerator.h" 00023 #include "Gamma.h" 00024 00029 class GammaRng: public RandGenerator 00030 { 00031 public: 00032 GammaRng(); 00033 virtual ~GammaRng() { ; } 00034 double getAlpha() const; 00035 double getTheta() const; 00036 void setAlpha(double alpha); 00037 void setTheta(double theta); 00038 00039 virtual void vReinit( const Eref& e, ProcPtr p); 00040 00041 static const Cinfo * initCinfo(); 00042 00043 private: 00044 double alpha_; 00045 double theta_; 00046 00047 bool isAlphaSet_; 00048 bool isThetaSet_; 00049 }; 00050 00051 00052 #endif