33#include <gsl/gsl_errno.h>
34#include <gsl/gsl_matrix.h>
35#include <gsl/gsl_odeiv.h>
57extern "C" inline int iaf_bw_2001_dynamics(
double,
const double*,
double*,
void* );
190void register_iaf_bw_2001(
const std::string& name );
196 iaf_bw_2001(
const iaf_bw_2001& );
197 ~iaf_bw_2001()
override;
206 using Node::handles_test_event;
209 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
211 void handle( SpikeEvent& )
override;
212 void handle( CurrentEvent& )
override;
213 void handle( DataLoggingRequest& )
override;
215 size_t handles_test_event( SpikeEvent&,
size_t )
override;
216 size_t handles_test_event( CurrentEvent&,
size_t )
override;
217 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
223 void get_status( Dictionary& )
const override;
224 void set_status(
const Dictionary& )
override;
227 is_off_grid()
const override
233 void init_state_()
override;
234 void pre_run_hook()
override;
235 void init_buffers_()
override;
236 void update( Time
const&,
const long,
const long )
override;
243 INF_SPIKE_RECEPTOR = 0,
251 friend int iaf_bw_2001_dynamics(
double,
const double*,
double*,
void* );
254 friend class RecordablesMap< iaf_bw_2001 >;
255 friend class UniversalDataLogger< iaf_bw_2001 >;
279 void get( Dictionary& )
const;
280 void set(
const Dictionary&, Node* node );
307 double y_[ STATE_VEC_SIZE ];
317 State_(
const Parameters_& );
318 State_(
const State_& );
319 State_& operator=(
const State_& ) =
default;
321 void get( Dictionary& )
const;
322 void set(
const Dictionary&,
const Parameters_&, Node* );
337 Buffers_( iaf_bw_2001& );
338 Buffers_(
const Buffers_&, iaf_bw_2001& );
341 UniversalDataLogger< iaf_bw_2001 > logger_;
346 std::vector< RingBuffer > spikes_;
347 RingBuffer currents_;
354 gsl_odeiv_control* c_;
355 gsl_odeiv_evolve* e_;
356 gsl_odeiv_system sys_;
365 double integration_step_;
386 long RefractoryCounts_;
394 template < State_::StateVecElems elem >
396 get_ode_state_elem_()
const
398 return S_.y_[ elem ];
426 static RecordablesMap< iaf_bw_2001 > recordablesMap_;
431iaf_bw_2001::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
434 e.set_sender( *
this );
435 return target.handles_test_event( e, receptor_type );
439iaf_bw_2001::handles_test_event(
SpikeEvent& e,
size_t receptor_type )
441 if ( not( INF_SPIKE_RECEPTOR < receptor_type and receptor_type < SUP_SPIKE_RECEPTOR ) )
446 const Node& sender =
e.get_sender();
447 if ( receptor_type ==
NMDA and
typeid( sender ) !=
typeid( *
this ) )
449 throw IllegalConnection(
"For NMDA synapses in iaf_bw_2001, pre-synaptic neuron must also be of type iaf_bw_2001" );
455iaf_bw_2001::handles_test_event(
CurrentEvent&,
size_t receptor_type )
457 if ( receptor_type != 0 )
474 if ( receptor_type != 0 )
483iaf_bw_2001::get_status( Dictionary& d )
const
499iaf_bw_2001::set_status(
const Dictionary& d )
501 Parameters_ ptmp = P_;
504 stmp.set( d, ptmp,
this );
Definition cm_compartmentcurrents.h:122
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:249
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition archiving_node.cpp:265
Event for electrical currents.
Definition event.h:608
Request data to be logged/logged data to be sent.
Definition event.h:675
Definition cm_compartmentcurrents.h:185
To be thrown if a connection is not possible.
Definition exceptions.h:490
Definition cm_compartmentcurrents.h:248
Base class for all NEST network objects.
Definition node.h:99
Event for spike information.
Definition event.h:420
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
const std::string AMPA("AMPA")
const std::string t_ref("t_ref")
const std::string tau_AMPA("tau_AMPA")
const std::string E_L("E_L")
const std::string s_GABA("s_GABA")
const std::string V_reset("V_reset")
const std::string NMDA("NMDA")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string s_NMDA("s_NMDA")
const std::string gsl_error_tol("gsl_error_tol")
const std::string V_th("V_th")
const std::string receptor_types("receptor_types")
const std::string s_AMPA("s_AMPA")
const std::string tau_rise_NMDA("tau_rise_NMDA")
const std::string conc_Mg2("conc_Mg2")
const std::string receptor_type("receptor_type")
const std::string tau_decay_NMDA("tau_decay_NMDA")
const std::string E_in("E_in")
const std::string alpha("alpha")
const std::string GABA("GABA")
const std::string tau_GABA("tau_GABA")
const std::string target("target")
const std::string V_m("V_m")
const std::string E_ex("E_ex")
const std::string g_L("g_L")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
RecordablesMap< binary_neuron< TGainfunction > > binary_neuron< TGainfunction >::recordablesMap_
Definition binary_neuron.h:319
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121
const double e
Definition numerics.cpp:32