SpikeBuffer Class Reference

Stores a sequence of spikes. Provides a cutoff routine which erases spikes older then some time point. More...

#include <SpikeBuffer.h>

Collaboration diagram for SpikeBuffer:

Collaboration graph
[legend]

List of all members.

Public Types

typedef double SpikeTime
typedef list< SpikeTime >
::const_iterator 
const_iterator
typedef list< SpikeTime >::iterator iterator
typedef list< SpikeTime >
::reverse_iterator 
reverse_iterator
typedef list< SpikeTime >
::const_reverse_iterator 
const_reverse_iterator

Public Member Functions

 SpikeBuffer (double max_time_diff=100e-3)
virtual ~SpikeBuffer ()
void reset (double mtd)
void insert (double t)
size_t size ()
void cutoff (double t)
 Cuts all spikes at the end of the buffer which are older than t - max_time_diff.
const_iterator begin ()
const_iterator end_of_window ()
SpikeTime const & first ()
SpikeTime const & second ()
SpikeTime const & last ()

Static Public Attributes

static SpikeTime InvalidSpikeTime


Detailed Description

Stores a sequence of spikes. Provides a cutoff routine which erases spikes older then some time point.

Used by each pair STDP synapses to store recent pre and post-synaptic spikes.

Definition at line 11 of file SpikeBuffer.h.


Member Typedef Documentation

Definition at line 15 of file SpikeBuffer.h.

Definition at line 17 of file SpikeBuffer.h.

Definition at line 18 of file SpikeBuffer.h.

Definition at line 20 of file SpikeBuffer.h.

Definition at line 21 of file SpikeBuffer.h.


Constructor & Destructor Documentation

SpikeBuffer::SpikeBuffer ( double  max_time_diff = 100e-3  )  [inline]

Definition at line 23 of file SpikeBuffer.h.

virtual SpikeBuffer::~SpikeBuffer (  )  [inline, virtual]

Definition at line 28 of file SpikeBuffer.h.


Member Function Documentation

void SpikeBuffer::reset ( double  mtd  )  [inline]

void SpikeBuffer::insert ( double  t  )  [inline]

size_t SpikeBuffer::size (  )  [inline]

void SpikeBuffer::cutoff ( double  t  )  [inline]

Cuts all spikes at the end of the buffer which are older than t - max_time_diff.

Definition at line 54 of file SpikeBuffer.h.

References InvalidSpikeTime.

Referenced by GenericEachPairStdpSynapse< GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< ExponentialDecaySpikeResponse > > >::spikeHit().

const_iterator SpikeBuffer::begin (  )  [inline]

const_iterator SpikeBuffer::end_of_window (  )  [inline]

SpikeTime const& SpikeBuffer::first (  )  [inline]

Definition at line 73 of file SpikeBuffer.h.

SpikeTime const& SpikeBuffer::second (  )  [inline]

SpikeTime const& SpikeBuffer::last (  )  [inline]

Definition at line 89 of file SpikeBuffer.h.


Member Data Documentation

Definition at line 94 of file SpikeBuffer.h.

Referenced by cutoff(), reset(), and second().


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