00001 /******************************************************************* 00002 * File: NormalRng.h 00003 * Description: 00004 * Author: Subhasis Ray 00005 * E-mail: ray.subhasis@gmail.com 00006 * Created: 2007-11-05 10:19:18 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 _NORMALRNG_H 00019 #define _NORMALRNG_H 00020 #include "randnum.h" 00021 #include "basecode/header.h" 00022 #include "RandGenerator.h" 00023 #include "Normal.h" 00024 00029 class NormalRng: public RandGenerator 00030 { 00031 public: 00032 NormalRng(); 00033 virtual ~NormalRng() { ; } 00034 void setMean(double mean); 00035 void setVariance(double variance); 00036 void setMethod(int method); 00037 int getMethod() const; 00038 virtual void vReinit( const Eref& e, ProcPtr p); 00039 00040 static const Cinfo * initCinfo(); 00041 }; 00042 00043 00044 #endif