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

lifneuron.h

Go to the documentation of this file.
00001 
00005 #ifndef _LIFNEURON_H_
00006 #define _LIFNEURON_H_
00007 
00008 #include "spikingneuron.h"
00009 
00011 
00038 class LifNeuron : public SpikingNeuron {
00039 
00040  DO_REGISTERING  
00041 
00042  public:
00043 
00044   LifNeuron(void);
00045   virtual ~LifNeuron();
00046 
00048   virtual int updateInternal(void);
00049 
00051   virtual void reset(void);
00052 
00054   virtual double nextstate(void);
00055 
00057   virtual int isRefractory(void);
00058 
00060   float Cm;
00061 
00063   float Rm;
00064 
00066   float Vthresh;
00067 
00069   float Vresting;
00070 
00072   float Vreset;
00073 
00075   float Vinit;
00076 
00078   float Trefract;
00079 
00081   float Inoise;
00082 
00084   float Iinject;
00085 
00086 protected:
00088   double Vm;
00089     
00091   float Isyn;
00092 
00093   // protected:
00094   // The total current: noise + inject +
00095   //double Itot;
00096 //int nStepsInRefr;
00097 
00098  private:
00100   int nStepsInRefr;
00101 
00103   double C1,C2,I0;
00104 
00105 };
00106 
00107 #endif