#include <PoissonInputNeuron.h>


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 | 
Definition at line 11 of file PoissonInputNeuron.h.
| 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.
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.

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

| virtual double PoissonInputNeuron::getManagedDelay | ( | ) |  const [inline, virtual] | 
        
| virtual int PoissonInputNeuron::nSpikeInputPorts | ( | ) |  const [inline, virtual] | 
        
| virtual int PoissonInputNeuron::nSpikeOutputPorts | ( | ) |  const [inline, virtual] | 
        
| virtual int PoissonInputNeuron::nAnalogInputPorts | ( | ) |  const [inline, virtual] | 
        
| virtual int PoissonInputNeuron::nAnalogOutputPorts | ( | ) |  const [inline, virtual] | 
        
Reimplemented from SimObject.
Definition at line 32 of file PoissonInputNeuron.h.
References SimObject::spiking, and SimObject::undefined.
Reimplemented from SimObject.
Definition at line 37 of file PoissonInputNeuron.h.
References SimObject::undefined.
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.
bool PoissonInputNeuron::active [protected]           | 
        
double PoissonInputNeuron::nextSpikeTime [protected]           | 
        
double PoissonInputNeuron::endTime [protected]           | 
        
ThreadSpecificRandomDistribution< ExponentialDistribution > PoissonInputNeuron::isi_gen [static, protected]           | 
        
 1.5.5