00001 /******************************************************************* 00002 * File: Uniform.h 00003 * Description: 00004 * Author: Subhasis Ray 00005 * E-mail: ray.subhasis@gmail.com 00006 * Created: 2008-02-21 17:09:54 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 _UNIFORM_H 00019 #define _UNIFORM_H 00020 00021 #include "Probability.h" 00022 00023 class Uniform: public Probability 00024 { 00025 public: 00026 Uniform(); 00027 Uniform(double min, double max); 00028 double getMean() const; 00029 double getVariance() const; 00030 double getNextSample() const; 00031 double getMin() const; 00032 double getMax() const; 00033 void setMin(double min); 00034 void setMax(double max); 00035 00036 private: 00037 double min_; 00038 double max_; 00039 00040 }; 00041 00042 00043 #endif