#include <SquarePulseSpikeResponse.h>
Public Member Functions | |
SquarePulseSpikeResponse (const float A=0.1, const float tau=5e-4) | |
virtual | ~SquarePulseSpikeResponse () |
virtual int | reset (double dt) |
Called at the beginning of a simulation at t=0. | |
virtual int | advance (AdvanceInfo const &ai) |
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 | A |
The Amplitude of the square pulse [range=(0,1e10)]. | |
float | tau |
The width in secs of the square pulse spike response [range=(0,1); units=sec;]. |
Definition at line 17 of file SquarePulseSpikeResponse.h.
SquarePulseSpikeResponse::SquarePulseSpikeResponse | ( | const float | A = 0.1 , |
|
const float | tau = 5e-4 | |||
) | [inline] |
Definition at line 22 of file SquarePulseSpikeResponse.h.
virtual SquarePulseSpikeResponse::~SquarePulseSpikeResponse | ( | ) | [inline, virtual] |
Definition at line 28 of file SquarePulseSpikeResponse.h.
Called at the beginning of a simulation at t=0.
Reimplemented from FiniteSpikeResponse.
Reimplemented in GenericDAModulatedSTDPSynapse< GenericFroemkeDanStdpSynapse< GenericEachPairStdpSynapse< GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse > > > > >, and GenericEachPairStdpSynapse< GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse > > >.
Definition at line 8 of file SquarePulseSpikeResponse.cpp.
References FiniteSpikeResponse::reset().
int SquarePulseSpikeResponse::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 GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse >, and GenericDAModulatedSTDPSynapse< GenericFroemkeDanStdpSynapse< GenericEachPairStdpSynapse< GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse > > > > >.
Definition at line 18 of file SquarePulseSpikeResponse.cpp.
References A, FiniteSpikeResponse::advanceReturn(), AdvanceInfo::dt, Time::in_sec(), FiniteSpikeResponse::psr, and AdvanceInfo::t.
int SquarePulseSpikeResponse::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 GenericDAModulatedSTDPSynapse< GenericFroemkeDanStdpSynapse< GenericEachPairStdpSynapse< GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse > > > > >, GenericEachPairStdpSynapse< GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse > > >, and GenericStaticSpikingSynapse< GenericCurrentBasedSpikingSynapse< SquarePulseSpikeResponse > >.
Definition at line 28 of file SquarePulseSpikeResponse.cpp.
References A, SpikeEvent::dt, FiniteSpikeResponse::psr, FiniteSpikeResponse::spikeHitReturn(), tau, SpikeEvent::time(), and SpikeEvent::weight.
The lengh of the postsynaptic response (in time steps).
Implements FiniteSpikeResponse.
Definition at line 36 of file SquarePulseSpikeResponse.cpp.
References tau.
The Amplitude of the square pulse [range=(0,1e10)].
Definition at line 29 of file SquarePulseSpikeResponse.h.
Referenced by advance(), DAModStdpSquarePulseSynapse::DAModStdpSquarePulseSynapse(), spikeHit(), StaticCurrSquarePulseSynapse::StaticCurrSquarePulseSynapse(), and StaticStdpSquareSynapse::StaticStdpSquareSynapse().
The width in secs of the square pulse spike response [range=(0,1); units=sec;].
Definition at line 35 of file SquarePulseSpikeResponse.h.
Referenced by DAModStdpSquarePulseSynapse::DAModStdpSquarePulseSynapse(), psrLength(), spikeHit(), StaticCurrSquarePulseSynapse::StaticCurrSquarePulseSynapse(), and StaticStdpSquareSynapse::StaticStdpSquareSynapse().