CSIM: spikefilter.h Source File

spikefilter.h

Go to the documentation of this file.
00001 
00005 #ifndef _SPIKEFILTER_H_
00006 #define _SPIKEFILTER_H_
00007 
00008 #include "filterfunction.h"
00009 #include "spikingneuron.h"
00010 #include "csimclass.h"
00011 
00012 using namespace std;
00013 
00015 class SpikeFilter : public FilterFunction {
00016 
00017  public:
00020   SpikeFilter(unsigned int values_per_channel=1);
00021 
00022   virtual ~SpikeFilter(void);
00023 
00029   virtual int filter(const double* r, double* x, int* indices);
00030 
00032   virtual void reset();
00033 
00036   virtual void addChannel(csimClass *o);
00037 
00038  protected:
00042   virtual double processSpike(int channel, double *target) = 0;
00043 
00044 
00045 
00047   int nChannels;
00049   int lChannels;
00050 
00052   double m_dt;
00053 
00055   double m_simtime;
00056 
00058   double **lastValues;
00060   int *firstSpike;
00062   SpikingNeuron **p_spikeSource;
00063 
00065   int nValuesPerChannel;
00066 
00067 };
00068 
00069 #endif

 
(C) 2003, Thomas Natschläger last modified 07/10/2006