CSIM: CountSpikeFilter Class Reference
CountSpikeFilter Class Reference#include <countspikefilter.h>
Inheritance diagram for CountSpikeFilter:
List of all members.
Detailed Description
Filter which counts the spikes in a given time window.
Public Member Functions
Public Attributes
Protected Member Functions
Friends
Constructor & Destructor Documentation
CountSpikeFilter::CountSpikeFilter |
( |
double |
time_window = 1000.0 |
) |
|
|
|
Constructs a new spike counter. - Parameters:
-
| time_window | Length of time window in ms (default 1 sec). |
|
Member Function Documentation
double CountSpikeFilter::processSpike |
( |
int |
channel, |
|
|
double * |
target |
|
) |
[protected, virtual] |
|
|
Process the occurence of a spike. - Parameters:
-
| channel | Index of the channel to filter. |
| target | Target value where to store the new filtered value. |
Implements SpikeFilter. |
int CountSpikeFilter::updateInternal |
( |
|
) |
[virtual] |
|
|
Updates the internal state of the filter.
Reimplemented from FilterFunction. |
|