PoissonInputNeuron Class Reference

#include <PoissonInputNeuron.h>

Inheritance diagram for PoissonInputNeuron:

Inheritance graph
[legend]
Collaboration diagram for PoissonInputNeuron:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PoissonInputNeuron ()
 PoissonInputNeuron (double rate, double duration, double Tstart=0, double Trefract=0)
virtual ~PoissonInputNeuron ()
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 double getManagedDelay () const
virtual int nSpikeInputPorts () const
virtual int nSpikeOutputPorts () const
virtual int nAnalogInputPorts () const
virtual int nAnalogOutputPorts () const
virtual PortType outputPortType (port_t o) const
virtual PortType inputPortType (port_t i) const

Public Attributes

double rate
 Rate of generated spike train [units=Hz; range=(0, 1e6);].
double Tstart
 Start time of the poisson spike train [units=sec; range=(0,1e6);].
double duration
 Duration time of the poisson spike train [units=sec; range=(0,1e6);].
double Trefract
 Refractory period added to each spike in the process [units=sec; range=(0,1e6);].

Protected Attributes

bool active
double nextSpikeTime
double endTime

Static Protected Attributes

static
ThreadSpecificRandomDistribution
< ExponentialDistribution
isi_gen


Detailed Description

Definition at line 11 of file PoissonInputNeuron.h.


Constructor & Destructor Documentation

PoissonInputNeuron::PoissonInputNeuron (  )  [explicit]

Definition at line 11 of file PoissonInputNeuron.cpp.

PoissonInputNeuron::PoissonInputNeuron ( double  rate,
double  duration,
double  Tstart = 0,
double  Trefract = 0 
) [explicit]

Definition at line 5 of file PoissonInputNeuron.cpp.

PoissonInputNeuron::~PoissonInputNeuron (  )  [virtual]

Definition at line 17 of file PoissonInputNeuron.cpp.


Member Function Documentation

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

Called at the beginning of a simulation at t=0.

Reimplemented from SimObject.

Definition at line 22 of file PoissonInputNeuron.cpp.

References active, duration, endTime, isi_gen, nextSpikeTime, rate, ThreadSpecificRandomDistribution< Dist >::set(), Trefract, and Tstart.

Here is the call graph for this function:

int PoissonInputNeuron::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.

Definition at line 33 of file PoissonInputNeuron.cpp.

References active, ADVANCEFLAG_HASSPIKED, AdvanceInfo::dt, endTime, Time::in_sec(), isi_gen, nextSpikeTime, SingleOutputSpikeSender::out_port, SpikeOutputPort::setSpike(), AdvanceInfo::t, and Trefract.

Here is the call graph for this function:

virtual double PoissonInputNeuron::getManagedDelay (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 26 of file PoissonInputNeuron.h.

virtual int PoissonInputNeuron::nSpikeInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 27 of file PoissonInputNeuron.h.

virtual int PoissonInputNeuron::nSpikeOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 28 of file PoissonInputNeuron.h.

virtual int PoissonInputNeuron::nAnalogInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 29 of file PoissonInputNeuron.h.

virtual int PoissonInputNeuron::nAnalogOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 30 of file PoissonInputNeuron.h.

virtual PortType PoissonInputNeuron::outputPortType ( port_t  o  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 32 of file PoissonInputNeuron.h.

References SimObject::spiking, and SimObject::undefined.

virtual PortType PoissonInputNeuron::inputPortType ( port_t  i  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 37 of file PoissonInputNeuron.h.

References SimObject::undefined.


Member Data Documentation

Rate of generated spike train [units=Hz; range=(0, 1e6);].

Definition at line 40 of file PoissonInputNeuron.h.

Referenced by reset().

Start time of the poisson spike train [units=sec; range=(0,1e6);].

Definition at line 46 of file PoissonInputNeuron.h.

Referenced by reset().

Duration time of the poisson spike train [units=sec; range=(0,1e6);].

Definition at line 49 of file PoissonInputNeuron.h.

Referenced by reset().

Refractory period added to each spike in the process [units=sec; range=(0,1e6);].

Definition at line 52 of file PoissonInputNeuron.h.

Referenced by advance(), and reset().

Definition at line 56 of file PoissonInputNeuron.h.

Referenced by advance(), and reset().

Definition at line 58 of file PoissonInputNeuron.h.

Referenced by advance(), and reset().

Definition at line 60 of file PoissonInputNeuron.h.

Referenced by advance(), and reset().

Definition at line 65 of file PoissonInputNeuron.h.

Referenced by advance(), and reset().


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

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