23#ifndef IAF_CHXK_2008_H
24#define IAF_CHXK_2008_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
155extern "C" int iaf_chxk_2008_dynamics(
double,
const double*,
double*,
void* );
157void register_iaf_chxk_2008(
const std::string& name );
166 iaf_chxk_2008(
const iaf_chxk_2008& );
167 ~iaf_chxk_2008()
override;
175 using Node::handles_test_event;
177 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
180 is_off_grid()
const override
185 size_t handles_test_event( SpikeEvent&,
size_t )
override;
186 size_t handles_test_event( CurrentEvent&,
size_t )
override;
187 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
189 void handle( SpikeEvent& )
override;
190 void handle( CurrentEvent& )
override;
191 void handle( DataLoggingRequest& )
override;
193 void get_status( Dictionary& )
const override;
194 void set_status(
const Dictionary& )
override;
197 void init_buffers_()
override;
198 void pre_run_hook()
override;
199 void update( Time
const&,
const long,
const long )
override;
206 friend int iaf_chxk_2008_dynamics(
double,
const double*,
double*,
void* );
209 friend class RecordablesMap< iaf_chxk_2008 >;
210 friend class UniversalDataLogger< iaf_chxk_2008 >;
235 void get( Dictionary& )
const;
236 void set(
const Dictionary&, Node* node );
267 double y[ STATE_VEC_SIZE ];
272 State_(
const Parameters_& );
273 State_(
const State_& );
275 State_& operator=(
const State_& );
277 void get( Dictionary& )
const;
283 void set(
const Dictionary&,
const Parameters_&, Node* );
297 Buffers_( iaf_chxk_2008& );
298 Buffers_(
const Buffers_&, iaf_chxk_2008& );
301 UniversalDataLogger< iaf_chxk_2008 > logger_;
304 RingBuffer spike_exc_;
305 RingBuffer spike_inh_;
306 RingBuffer currents_;
310 gsl_odeiv_control* c_;
311 gsl_odeiv_evolve* e_;
312 gsl_odeiv_system sys_;
318 double IntegrationStep_;
354 double PSConInit_AHP;
360 template < State_::StateVecElems elem >
371 return Time::get_resolution().get_ms() * S_.r;
375 get_I_syn_exc_()
const
377 return S_.y[ State_::G_EXC ] * ( S_.y[ State_::V_M ] - P_.E_ex );
380 get_I_syn_inh_()
const
382 return S_.y[ State_::G_INH ] * ( S_.y[ State_::V_M ] - P_.E_in );
387 return S_.y[ State_::G_AHP ] * ( S_.y[ State_::V_M ] - P_.E_ahp );
400 static RecordablesMap< iaf_chxk_2008 > recordablesMap_;
407iaf_chxk_2008::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
410 e.set_sender( *
this );
412 return target.handles_test_event( e, receptor_type );
416iaf_chxk_2008::handles_test_event(
SpikeEvent&,
size_t receptor_type )
418 if ( receptor_type != 0 )
426iaf_chxk_2008::handles_test_event(
CurrentEvent&,
size_t receptor_type )
428 if ( receptor_type != 0 )
438 if ( receptor_type != 0 )
446iaf_chxk_2008::get_status( Dictionary& d )
const
456iaf_chxk_2008::set_status(
const Dictionary& d )
458 Parameters_ ptmp = P_;
461 stmp.set( d, ptmp,
this );
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
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 E_L("E_L")
const std::string ahp_bug("ahp_bug")
const std::string I_e("I_e")
const std::string recordables("recordables")
const std::string g_ahp("g_ahp")
const std::string C_m("C_m")
const std::string V_th("V_th")
const std::string E_in("E_in")
const std::string target("target")
const std::string E_ahp("E_ahp")
const std::string tau_ahp("tau_ahp")
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