CSIM: AlphaSpikeFilter Class Reference
AlphaSpikeFilter Class Reference#include <alphaspikefilter.h>
Inheritance diagram for AlphaSpikeFilter:
List of all members.
Detailed Description
Filter which simulates spikes with alpha functions.
Public Member Functions
Public Attributes
-
double m_tau1
- Time constant 1.
-
double m_tau2
- Time constant 2.
Protected Member Functions
Protected Attributes
Friends
Constructor & Destructor Documentation
AlphaSpikeFilter::AlphaSpikeFilter |
( |
double |
tau1 = 30e-3 , |
|
|
double |
tau2 = 3e-3 |
|
) |
|
|
Member Function Documentation
double AlphaSpikeFilter::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 AlphaSpikeFilter::updateInternal |
( |
|
) |
[virtual] |
|
|
Updates the internal state of the filter.
Reimplemented from FilterFunction. |
|