00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _SPIKE_STATS_H
00010 #define _SPIKE_STATS_H
00011
00012 class SpikeStats: public Stats
00013 {
00014 public:
00015 SpikeStats();
00016
00020 void addSpike( DataId synIndex, const double time );
00021
00023
00025
00026 void setThreshold( double thresh );
00027 double getThreshold() const;
00028
00030
00032 void addSpike( double v );
00033 void Vm( double v );
00034
00036 void vProcess( const Eref& e, ProcPtr p );
00037 void vReinit( const Eref& e, ProcPtr p );
00038
00040 static const Cinfo* initCinfo();
00041 private:
00042 unsigned int numSpikes_;
00043 double threshold_;
00044 bool fired_;
00045 };
00046
00047 #endif // _SPIKE_STATS_H