#include <AlphaFunctionSpikeResponse.h>
Public Member Functions | |
AlphaFunctionSpikeResponse (const float tau=3e-3) | |
virtual | ~AlphaFunctionSpikeResponse () |
virtual int | adjust (double dt) |
This tells the object that it should adjust to a new simulation time step width. | |
virtual int | reset (double dt) |
Called at the beginning of a simulation at t=0. | |
virtual int | advance (AdvanceInfo const &) |
Calculate the next state and output/propagate the result to succesors/outgoing objects. | |
virtual int | spikeHit (spikeport_t port, SpikeEvent const &spike) |
virtual int | psrLength (double dt) const |
The lengh of the postsynaptic response (in time steps). | |
Public Attributes | |
float | tau |
The decay time constant . |
Definition at line 6 of file AlphaFunctionSpikeResponse.h.
AlphaFunctionSpikeResponse::AlphaFunctionSpikeResponse | ( | const float | tau = 3e-3 |
) | [inline] |
Definition at line 12 of file AlphaFunctionSpikeResponse.h.
virtual AlphaFunctionSpikeResponse::~AlphaFunctionSpikeResponse | ( | ) | [inline, virtual] |
Definition at line 17 of file AlphaFunctionSpikeResponse.h.
This tells the object that it should adjust to a new simulation time step width.
Reimplemented from SimObject.
Reimplemented in GenericGABASynapse< AlphaFunctionSpikeResponse >, and GenericGlutamateSynapse< AlphaFunctionSpikeResponse >.
Definition at line 8 of file AlphaFunctionSpikeResponse.cpp.
References tau.
Referenced by reset().
Called at the beginning of a simulation at t=0.
Reimplemented from FiniteSpikeResponse.
Reimplemented in DynamicGABAAlphaSynapse, StaticGABAAlphaSynapse, DynamicGlutamateAlphaSynapse, StaticGlutamateAlphaSynapse, GenericDynamicSpikingSynapse< GenericConductanceBasedSpikingSynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGABASynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGlutamateSynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericNMDASynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< AlphaFunctionSpikeResponse > >, GenericGABASynapse< AlphaFunctionSpikeResponse >, and GenericGlutamateSynapse< AlphaFunctionSpikeResponse >.
Definition at line 19 of file AlphaFunctionSpikeResponse.cpp.
References adjust(), FiniteSpikeResponse::psr, and FiniteSpikeResponse::reset().
Referenced by StaticGlutamateAlphaSynapse::reset(), DynamicGlutamateAlphaSynapse::reset(), StaticGABAAlphaSynapse::reset(), and DynamicGABAAlphaSynapse::reset().
int AlphaFunctionSpikeResponse::advance | ( | AdvanceInfo const & | ) | [virtual] |
Calculate the next state and output/propagate the result to succesors/outgoing objects.
The return value of advance contains several bits of information which can be decoded with the bit masks ADVANCEFLAG_* like ADVANCEFLAG_HASSPIKED and ADVANCEFLAG_DEACTIVATE.
Reimplemented from SimObject.
Reimplemented in GenericConductanceBasedSpikingSynapse< AlphaFunctionSpikeResponse >, GenericCurrentBasedSpikingSynapse< AlphaFunctionSpikeResponse >, GenericGABASynapse< AlphaFunctionSpikeResponse >, GenericGlutamateSynapse< AlphaFunctionSpikeResponse >, and GenericNMDASynapse< AlphaFunctionSpikeResponse >.
Definition at line 27 of file AlphaFunctionSpikeResponse.cpp.
References FiniteSpikeResponse::advanceReturn(), and FiniteSpikeResponse::psr.
int AlphaFunctionSpikeResponse::spikeHit | ( | spikeport_t | port, | |
SpikeEvent const & | spike | |||
) | [virtual] |
Function to be called if the object is hit by a spike Called by spike exchange mechanims if a spike hits (arrives at) the object A return value of greater 0 indicates that the object is currently not active and the sim engine has to put this object into its list of active spike receivers. A return value of 0 indicates the the object is currently active (i.e. is already in the list of active receviers) and need not to be put into the list of active synapses.
Reimplemented from SimObject.
Reimplemented in GenericDynamicSpikingSynapse< GenericConductanceBasedSpikingSynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGABASynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGlutamateSynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericNMDASynapse< AlphaFunctionSpikeResponse > >, GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< AlphaFunctionSpikeResponse > >, GenericGABASynapse< AlphaFunctionSpikeResponse >, GenericGlutamateSynapse< AlphaFunctionSpikeResponse >, GenericStaticSpikingSynapse< GenericConductanceBasedSpikingSynapse< AlphaFunctionSpikeResponse > >, GenericStaticSpikingSynapse< GenericGABASynapse< AlphaFunctionSpikeResponse > >, GenericStaticSpikingSynapse< GenericGlutamateSynapse< AlphaFunctionSpikeResponse > >, GenericStaticSpikingSynapse< GenericNMDASynapse< AlphaFunctionSpikeResponse > >, and GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< AlphaFunctionSpikeResponse > >.
Definition at line 34 of file AlphaFunctionSpikeResponse.cpp.
References SpikeEvent::delta, SpikeEvent::dt, FiniteSpikeResponse::psr, FiniteSpikeResponse::spikeHitReturn(), and SpikeEvent::weight.
The lengh of the postsynaptic response (in time steps).
Here we choose this to be PSR_MULTIPLE_TAU * tau / DT() where PSR_MULTIPLE_TAU (e.g. 5) is set in globaldefinitions.h.
Implements FiniteSpikeResponse.
Reimplemented in GenericGlutamateSynapse< AlphaFunctionSpikeResponse >.
Definition at line 44 of file AlphaFunctionSpikeResponse.cpp.
References PSR_MULTIPLE_TAU, and tau.
The decay time constant .
Each spike linearly adds a exponential decaying response of the form where is the arrival time of the spike and a .
Definition at line 18 of file AlphaFunctionSpikeResponse.h.
Referenced by adjust(), DynamicCondAlphaSynapse::DynamicCondAlphaSynapse(), DynamicCurrAlphaSynapse::DynamicCurrAlphaSynapse(), DynamicGABAAlphaSynapse::DynamicGABAAlphaSynapse(), DynamicGlutamateAlphaSynapse::DynamicGlutamateAlphaSynapse(), DynamicNMDAAlphaSynapse::DynamicNMDAAlphaSynapse(), psrLength(), StaticGlutamateAlphaSynapse::reset(), DynamicGlutamateAlphaSynapse::reset(), StaticGABAAlphaSynapse::reset(), DynamicGABAAlphaSynapse::reset(), StaticCondAlphaSynapse::StaticCondAlphaSynapse(), StaticCurrAlphaSynapse::StaticCurrAlphaSynapse(), StaticGABAAlphaSynapse::StaticGABAAlphaSynapse(), StaticGlutamateAlphaSynapse::StaticGlutamateAlphaSynapse(), and StaticNMDAAlphaSynapse::StaticNMDAAlphaSynapse().