SquarePulseSpikeResponse Class Reference

#include <SquarePulseSpikeResponse.h>

Inheritance diagram for SquarePulseSpikeResponse:

Inheritance graph
[legend]
Collaboration diagram for SquarePulseSpikeResponse:

Collaboration graph
[legend]

List of all members.

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;].


Detailed Description

Definition at line 17 of file SquarePulseSpikeResponse.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

int SquarePulseSpikeResponse::reset ( double  dt  )  [virtual]

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

int SquarePulseSpikeResponse::psrLength ( double  dt  )  const [virtual]

The lengh of the postsynaptic response (in time steps).

Implements FiniteSpikeResponse.

Definition at line 36 of file SquarePulseSpikeResponse.cpp.

References tau.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed Jul 9 16:34:55 2008 for PCSIM by  doxygen 1.5.5