CSIM: AlphaSpikeFilter Class Reference

AlphaSpikeFilter Class Reference

#include <alphaspikefilter.h>

Inheritance diagram for AlphaSpikeFilter:

SpikeFilter FilterFunction Advancable csimClass 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
 

Constructs a new alpha-function spike filter.

Parameters:
tau1 Time constant (default $tau_1 = 0.03$ ). Decay by $alpha(-DT/\tau_1)$ .
tau2 Time constant (default $tau_1 = 0.003$ ). Decay by $alpha(-DT/\tau_2)$ .


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.


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