CSIM: SpikeFilter Class Reference
SpikeFilter Class Reference#include <spikefilter.h>
Inheritance diagram for SpikeFilter:
List of all members.
Detailed Description
Base class of all spike filters.
Public Member Functions
Protected Member Functions
Protected Attributes
Constructor & Destructor Documentation
SpikeFilter::SpikeFilter |
( |
unsigned int |
values_per_channel = 1 |
) |
|
|
|
Constructs a new spike filter. - Parameters:
-
| values_per_channel | Number of values to store per channel (e.g. 1 for exp-filter, 2 for alpha-filter). |
|
SpikeFilter::~SpikeFilter |
( |
void |
|
) |
[virtual] |
|
Member Function Documentation
void SpikeFilter::addChannel |
( |
csimClass * |
o |
) |
[virtual] |
|
|
Adds one input channel. - Parameters:
-
| o | Pointer to spiking neuron. The "spikes" channel of this neuron is inserted. |
|
int SpikeFilter::filter |
( |
const double * |
r, |
|
|
double * |
x, |
|
|
int * |
indices |
|
) |
[virtual] |
|
|
Filter a spike signal of the neural microcircuit. - Parameters:
-
| r | Response of the neural microcircuit. (not needed for spikes) |
| x | Target vector where to save the results. |
| indices | Indices where to store the results in X. |
- Returns:
- -1 if an error occured, 1 for success.
Implements FilterFunction. |
virtual double SpikeFilter::processSpike |
( |
int |
channel, |
|
|
double * |
target |
|
) |
[protected, pure virtual] |
|
void SpikeFilter::reset |
( |
|
) |
[virtual] |
|
|
Resets the information stored within the filter.
Implements FilterFunction. |
|