23#ifndef IAF_PSC_EXP_PS_H
24#define IAF_PSC_EXP_PS_H
227 void update(
Time const& origin,
const long from,
const long to )
override;
252 void emit_spike_(
const Time& origin,
const long lag,
const double t0,
const double dt );
420 e.set_sender( *
this );
421 return target.handles_test_event( e, receptor_type );
427 if ( receptor_type != 0 )
437 if ( receptor_type != 0 )
447 if ( receptor_type != 0 )
468 const double delta_EL = ptmp.
set( d,
this );
470 stmp.
set( d, ptmp, delta_EL,
this );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Exact integration voltage propagator for models with exponential psc.
Definition iaf_propagator.h:101
A node which archives spike history for the purposes of spike-timing dependent plasticity (STDP)
Definition archiving_node.h:49
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition archiving_node.cpp:220
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition archiving_node.cpp:236
Event for electrical currents.
Definition event.h:569
Request data to be logged/logged data to be sent.
Definition event.h:636
Base class for all NEST network objects.
Definition node.h:99
std::string get_name() const
Return class name.
Definition node.cpp:105
Map names of recordables to data access functions.
Definition recordables_map.h:61
Buffer Layout.
Definition ring_buffer.h:83
Queue for all spikes arriving into a neuron.
Definition slice_ring_buffer.h:63
Event for spike information.
Definition event.h:418
Definition nest_time.h:135
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
Definition iaf_psc_exp_ps.h:146
Parameters_ P_
Instances of private data structures for the different types of data pertaining to the model.
Definition iaf_psc_exp_ps.h:406
size_t send_test_event(Node &, size_t, synindex, bool) override
Send an event to the receiving_node passed as an argument.
Definition iaf_psc_exp_ps.h:417
IAFPropagatorExp propagator_ex_
Propagator object for updating synaptic components.
Definition iaf_psc_exp_ps.h:265
void handle(SpikeEvent &) override
Handle incoming spike events.
Definition iaf_psc_exp_ps.cpp:433
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition iaf_psc_exp_ps.cpp:251
Variables_ V_
Definition iaf_psc_exp_ps.h:408
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition iaf_psc_exp_ps.h:425
double get_V_m_() const
Read out the real membrane potential.
Definition iaf_psc_exp_ps.h:393
State_ S_
Definition iaf_psc_exp_ps.h:407
iaf_psc_exp_ps()
Basic constructor.
Definition iaf_psc_exp_ps.cpp:218
void propagate_(const double dt)
Propagate neuron state.
Definition iaf_psc_exp_ps.cpp:470
void emit_spike_(const Time &origin, const long lag, const double t0, const double dt)
Trigger iterative method to find the precise spike time within the mini-timestep (t0,...
Definition iaf_psc_exp_ps.cpp:495
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition iaf_psc_exp_ps.h:465
IAFPropagatorExp propagator_in_
Definition iaf_psc_exp_ps.h:266
Buffers_ B_
Definition iaf_psc_exp_ps.h:409
friend class UniversalDataLogger< iaf_psc_exp_ps >
Definition iaf_psc_exp_ps.h:232
double threshold_distance(double t_step) const
Based on the current state, compute the value of the membrane potential after taking a timestep of le...
Definition iaf_psc_exp_ps.cpp:542
bool is_off_grid() const override
Returns true if the node sends/receives off-grid events.
Definition iaf_psc_exp_ps.h:182
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition iaf_psc_exp_ps.h:455
void update(Time const &origin, const long from, const long to) override
Time Evolution Operator.
Definition iaf_psc_exp_ps.cpp:279
void init_buffers_() override
Configure persistent internal data structures.
Definition iaf_psc_exp_ps.cpp:240
void emit_instant_spike_(const Time &origin, const long lag, const double spike_offset)
Instantaneously emit a spike at the precise time defined by origin, lag and spike_offset and reset th...
Definition iaf_psc_exp_ps.cpp:521
static RecordablesMap< iaf_psc_exp_ps > recordablesMap_
Mapping of recordables names to access functions.
Definition iaf_psc_exp_ps.h:413
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:271
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition node.cpp:265
const std::string recordables("recordables")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_iaf_psc_exp_ps(const std::string &name)
Definition iaf_psc_exp_ps.cpp:50
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Buffers of the model.
Definition iaf_psc_exp_ps.h:353
UniversalDataLogger< iaf_psc_exp_ps > logger_
Logger for all analog data.
Definition iaf_psc_exp_ps.h:365
SliceRingBuffer events_
Queue for incoming events.
Definition iaf_psc_exp_ps.h:361
RingBuffer currents_
Definition iaf_psc_exp_ps.h:362
Independent parameters of the model.
Definition iaf_psc_exp_ps.h:274
double tau_in_
Time constant of inh.
Definition iaf_psc_exp_ps.h:282
double U_reset_
Reset potential.
Definition iaf_psc_exp_ps.h:307
double I_e_
External DC current [pA].
Definition iaf_psc_exp_ps.h:294
double set(const Dictionary &, Node *node)
Set values from dictionary.
Definition iaf_psc_exp_ps.cpp:124
void get(Dictionary &) const
Store current values in dictionary.
Definition iaf_psc_exp_ps.cpp:109
double tau_m_
Membrane time constant in ms.
Definition iaf_psc_exp_ps.h:276
double tau_ex_
Time constant of exc.
Definition iaf_psc_exp_ps.h:279
double t_ref_
Refractory period in ms.
Definition iaf_psc_exp_ps.h:288
double c_m_
Membrane capacitance in pF.
Definition iaf_psc_exp_ps.h:285
Parameters_()
Sets default parameter values.
Definition iaf_psc_exp_ps.cpp:69
double E_L_
Resting potential in mV.
Definition iaf_psc_exp_ps.h:291
double U_th_
Threshold, RELATIVE TO RESTING POTENTIAL(!).
Definition iaf_psc_exp_ps.h:298
double U_min_
Lower bound, RELATIVE TO RESTING POTENTIAL(!).
Definition iaf_psc_exp_ps.h:302
State variables of the model.
Definition iaf_psc_exp_ps.h:325
double y1_ex_
Excitatory synaptic current.
Definition iaf_psc_exp_ps.h:327
double y0_
External input current.
Definition iaf_psc_exp_ps.h:326
long last_spike_step_
Time stamp of most recent spike.
Definition iaf_psc_exp_ps.h:332
void get(Dictionary &, const Parameters_ &) const
Definition iaf_psc_exp_ps.cpp:191
State_()
Default initialization.
Definition iaf_psc_exp_ps.cpp:83
bool is_refractory_
True while refractory.
Definition iaf_psc_exp_ps.h:331
double last_spike_offset_
Offset of most recent spike.
Definition iaf_psc_exp_ps.h:333
void set(const Dictionary &, const Parameters_ &, double, Node *)
Set values from dictionary.
Definition iaf_psc_exp_ps.cpp:200
double y2_
Membrane potential (relative to resting potential)
Definition iaf_psc_exp_ps.h:329
double y1_in_
Inhibitory synaptic current.
Definition iaf_psc_exp_ps.h:328
Internal variables of the model.
Definition iaf_psc_exp_ps.h:374
double exp_tau_in_
exp(-h/tau_in)
Definition iaf_psc_exp_ps.h:379
double P21_ex_
Progagator matrix element, 2nd row.
Definition iaf_psc_exp_ps.h:382
double y2_before_
y2_ at beginning of ministep
Definition iaf_psc_exp_ps.h:386
double exp_tau_ex_
exp(-h/tau_ex)
Definition iaf_psc_exp_ps.h:378
long refractory_steps_
Refractory time in steps.
Definition iaf_psc_exp_ps.h:376
double P21_in_
Progagator matrix element, 2nd row.
Definition iaf_psc_exp_ps.h:381
double expm1_tau_m_
expm1(-h/tau_m)
Definition iaf_psc_exp_ps.h:377
double h_ms_
Time resolution [ms].
Definition iaf_psc_exp_ps.h:375
double P20_
Progagator matrix element, 2nd row.
Definition iaf_psc_exp_ps.h:380
double y1_ex_before_
y1_ at beginning of ministep
Definition iaf_psc_exp_ps.h:384
double y0_before_
y0_ at beginning of ministep
Definition iaf_psc_exp_ps.h:383
double y1_in_before_
y1_ at beginning of ministep
Definition iaf_psc_exp_ps.h:385