#include <DoubleExponentialSpikeResponse.h>
Public Member Functions | |
DoubleExponentialSpikeResponse (const float tau1=1e-3, const float tau2=3e-3) | |
virtual | ~DoubleExponentialSpikeResponse () |
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 | tau1 |
The rise time constant . | |
float | tau2 |
The fall time constant . |
Definition at line 6 of file DoubleExponentialSpikeResponse.h.
DoubleExponentialSpikeResponse::DoubleExponentialSpikeResponse | ( | const float | tau1 = 1e-3 , |
|
const float | tau2 = 3e-3 | |||
) | [inline] |
Definition at line 12 of file DoubleExponentialSpikeResponse.h.
virtual DoubleExponentialSpikeResponse::~DoubleExponentialSpikeResponse | ( | ) | [inline, virtual] |
Definition at line 18 of file DoubleExponentialSpikeResponse.h.
This tells the object that it should adjust to a new simulation time step width.
Reimplemented from SimObject.
Reimplemented in GenericGABASynapse< DoubleExponentialSpikeResponse >, and GenericGlutamateSynapse< DoubleExponentialSpikeResponse >.
Definition at line 4 of file DoubleExponentialSpikeResponse.cpp.
Referenced by reset().
Called at the beginning of a simulation at t=0.
Reimplemented from FiniteSpikeResponse.
Reimplemented in DynamicGABADoubleExpSynapse, StaticGABADoubleExpSynapse, DynamicGlutamateDoubleExpSynapse, StaticGlutamateDoubleExpSynapse, GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGABASynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGlutamateSynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericNMDASynapse< DoubleExponentialSpikeResponse > >, GenericFacetsHWDepressionSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericFacetsHWFacilitationSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericGABASynapse< DoubleExponentialSpikeResponse >, and GenericGlutamateSynapse< DoubleExponentialSpikeResponse >.
Definition at line 22 of file DoubleExponentialSpikeResponse.cpp.
References adjust(), FiniteSpikeResponse::psr, and FiniteSpikeResponse::reset().
Referenced by StaticGlutamateDoubleExpSynapse::reset(), DynamicGlutamateDoubleExpSynapse::reset(), StaticGABADoubleExpSynapse::reset(), and DynamicGABADoubleExpSynapse::reset().
int DoubleExponentialSpikeResponse::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< DoubleExponentialSpikeResponse >, GenericCurrentBasedSpikingSynapse< DoubleExponentialSpikeResponse >, GenericGABASynapse< DoubleExponentialSpikeResponse >, GenericGlutamateSynapse< DoubleExponentialSpikeResponse >, and GenericNMDASynapse< DoubleExponentialSpikeResponse >.
Definition at line 30 of file DoubleExponentialSpikeResponse.cpp.
References FiniteSpikeResponse::advanceReturn(), and FiniteSpikeResponse::psr.
int DoubleExponentialSpikeResponse::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< GenericCurrentBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGABASynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericGlutamateSynapse< DoubleExponentialSpikeResponse > >, GenericDynamicSpikingSynapse< GenericNMDASynapse< DoubleExponentialSpikeResponse > >, GenericFacetsHWDepressionSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericFacetsHWFacilitationSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericGABASynapse< DoubleExponentialSpikeResponse >, GenericGlutamateSynapse< DoubleExponentialSpikeResponse >, GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, GenericStaticSpikingSynapse< GenericGABASynapse< DoubleExponentialSpikeResponse > >, GenericStaticSpikingSynapse< GenericGlutamateSynapse< DoubleExponentialSpikeResponse > >, GenericStaticSpikingSynapse< GenericConductanceBasedSpikingSynapse< DoubleExponentialSpikeResponse > >, and GenericStaticSpikingSynapse< GenericNMDASynapse< DoubleExponentialSpikeResponse > >.
Definition at line 38 of file DoubleExponentialSpikeResponse.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< DoubleExponentialSpikeResponse >.
Definition at line 49 of file DoubleExponentialSpikeResponse.cpp.
References PSR_MULTIPLE_TAU, tau1, and tau2.
The rise time constant .
Definition at line 19 of file DoubleExponentialSpikeResponse.h.
Referenced by adjust(), DynamicCondDoubleExpSynapse::DynamicCondDoubleExpSynapse(), DynamicCurrDoubleExpSynapse::DynamicCurrDoubleExpSynapse(), DynamicGABADoubleExpSynapse::DynamicGABADoubleExpSynapse(), DynamicGlutamateDoubleExpSynapse::DynamicGlutamateDoubleExpSynapse(), DynamicNMDADoubleExpSynapse::DynamicNMDADoubleExpSynapse(), FacetsHWDepressionSynapse::FacetsHWDepressionSynapse(), FacetsHWFacilitationSynapse::FacetsHWFacilitationSynapse(), psrLength(), StaticGlutamateDoubleExpSynapse::reset(), DynamicGlutamateDoubleExpSynapse::reset(), StaticGABADoubleExpSynapse::reset(), DynamicGABADoubleExpSynapse::reset(), StaticCondDoubleExpSynapse::StaticCondDoubleExpSynapse(), StaticCurrDoubleExpSynapse::StaticCurrDoubleExpSynapse(), StaticGABADoubleExpSynapse::StaticGABADoubleExpSynapse(), StaticGlutamateDoubleExpSynapse::StaticGlutamateDoubleExpSynapse(), and StaticNMDADoubleExpSynapse::StaticNMDADoubleExpSynapse().
The fall time constant .
Definition at line 25 of file DoubleExponentialSpikeResponse.h.
Referenced by adjust(), DynamicCondDoubleExpSynapse::DynamicCondDoubleExpSynapse(), DynamicCurrDoubleExpSynapse::DynamicCurrDoubleExpSynapse(), DynamicGABADoubleExpSynapse::DynamicGABADoubleExpSynapse(), DynamicGlutamateDoubleExpSynapse::DynamicGlutamateDoubleExpSynapse(), DynamicNMDADoubleExpSynapse::DynamicNMDADoubleExpSynapse(), FacetsHWDepressionSynapse::FacetsHWDepressionSynapse(), FacetsHWFacilitationSynapse::FacetsHWFacilitationSynapse(), psrLength(), StaticGlutamateDoubleExpSynapse::reset(), DynamicGlutamateDoubleExpSynapse::reset(), StaticGABADoubleExpSynapse::reset(), DynamicGABADoubleExpSynapse::reset(), StaticCondDoubleExpSynapse::StaticCondDoubleExpSynapse(), StaticCurrDoubleExpSynapse::StaticCurrDoubleExpSynapse(), StaticGABADoubleExpSynapse::StaticGABADoubleExpSynapse(), StaticGlutamateDoubleExpSynapse::StaticGlutamateDoubleExpSynapse(), and StaticNMDADoubleExpSynapse::StaticNMDADoubleExpSynapse().