#include <SpikeBuffer.h>
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 |
Used by each pair STDP synapses to store recent pre and post-synaptic spikes.
Definition at line 11 of file SpikeBuffer.h.
typedef double SpikeBuffer::SpikeTime |
Definition at line 15 of file SpikeBuffer.h.
typedef list<SpikeTime>::const_iterator SpikeBuffer::const_iterator |
Definition at line 17 of file SpikeBuffer.h.
typedef list<SpikeTime>::iterator SpikeBuffer::iterator |
Definition at line 18 of file SpikeBuffer.h.
typedef list<SpikeTime>::reverse_iterator SpikeBuffer::reverse_iterator |
Definition at line 20 of file SpikeBuffer.h.
typedef list<SpikeTime>::const_reverse_iterator SpikeBuffer::const_reverse_iterator |
Definition at line 21 of file SpikeBuffer.h.
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.
void SpikeBuffer::reset | ( | double | mtd | ) | [inline] |
void SpikeBuffer::insert | ( | double | t | ) | [inline] |
Definition at line 39 of file SpikeBuffer.h.
size_t SpikeBuffer::size | ( | ) | [inline] |
Definition at line 44 of file SpikeBuffer.h.
Referenced by GenericEachPairStdpSynapse< BaseSyn >::postSpikeHit(), and GenericEachPairStdpSynapse< BaseSyn >::preSpikeHit().
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.
const_iterator SpikeBuffer::begin | ( | ) | [inline] |
Definition at line 63 of file SpikeBuffer.h.
Referenced by GenericEachPairStdpSynapse< BaseSyn >::postSpikeHit(), and GenericEachPairStdpSynapse< BaseSyn >::preSpikeHit().
const_iterator SpikeBuffer::end_of_window | ( | ) | [inline] |
Definition at line 68 of file SpikeBuffer.h.
Referenced by GenericEachPairStdpSynapse< BaseSyn >::postSpikeHit(), and GenericEachPairStdpSynapse< BaseSyn >::preSpikeHit().
SpikeTime const& SpikeBuffer::first | ( | ) | [inline] |
Definition at line 73 of file SpikeBuffer.h.
SpikeTime const& SpikeBuffer::second | ( | ) | [inline] |
Definition at line 78 of file SpikeBuffer.h.
References InvalidSpikeTime.
Referenced by GenericEachPairStdpSynapse< BaseSyn >::postSpikeHit(), and GenericEachPairStdpSynapse< BaseSyn >::preSpikeHit().
SpikeTime const& SpikeBuffer::last | ( | ) | [inline] |
Definition at line 89 of file SpikeBuffer.h.