23#ifndef AEIF_COND_EXP_H
24#define AEIF_COND_EXP_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int aeif_cond_exp_dynamics(
double,
const double*,
double*,
void* );
69extern "C" int aeif_cond_exp_dynamics_DT0(
double,
const double*,
double*,
void* );
208void register_aeif_cond_exp(
const std::string& name );
215 aeif_cond_exp(
const aeif_cond_exp& );
216 ~aeif_cond_exp()
override;
224 using Node::handles_test_event;
226 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
228 void handle( SpikeEvent& )
override;
229 void handle( CurrentEvent& )
override;
230 void handle( DataLoggingRequest& )
override;
232 size_t handles_test_event( SpikeEvent&,
size_t )
override;
233 size_t handles_test_event( CurrentEvent&,
size_t )
override;
234 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
236 void get_status( Dictionary& )
const override;
237 void set_status(
const Dictionary& )
override;
240 void init_buffers_()
override;
241 void pre_run_hook()
override;
242 void update(
const Time&,
const long,
const long )
override;
249 friend int aeif_cond_exp_dynamics(
double,
const double*,
double*,
void* );
252 friend class RecordablesMap< aeif_cond_exp >;
253 friend class UniversalDataLogger< aeif_cond_exp >;
283 void get( Dictionary& )
const;
284 void set(
const Dictionary&, Node* node );
312 double y_[ STATE_VEC_SIZE ];
315 State_(
const Parameters_& );
316 State_(
const State_& );
318 State_& operator=(
const State_& );
320 void get( Dictionary& )
const;
321 void set(
const Dictionary&,
const Parameters_&, Node* );
331 Buffers_( aeif_cond_exp& );
332 Buffers_(
const Buffers_&, aeif_cond_exp& );
335 UniversalDataLogger< aeif_cond_exp > logger_;
338 RingBuffer spike_exc_;
339 RingBuffer spike_inh_;
340 RingBuffer currents_;
344 gsl_odeiv_control* c_;
345 gsl_odeiv_evolve* e_;
346 gsl_odeiv_system sys_;
352 double IntegrationStep_;
377 unsigned int refractory_counts_;
383 template < State_::StateVecElems elem >
387 return S_.y_[ elem ];
398 static RecordablesMap< aeif_cond_exp > recordablesMap_;
402aeif_cond_exp::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
405 e.set_sender( *
this );
407 return target.handles_test_event( e, receptor_type );
411aeif_cond_exp::handles_test_event(
SpikeEvent&,
size_t receptor_type )
413 if ( receptor_type != 0 )
421aeif_cond_exp::handles_test_event(
CurrentEvent&,
size_t receptor_type )
423 if ( receptor_type != 0 )
433 if ( receptor_type != 0 )
441aeif_cond_exp::get_status( Dictionary& d )
const
451aeif_cond_exp::set_status(
const Dictionary& d )
453 Parameters_ ptmp = P_;
456 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 tau_syn_in("tau_syn_in")
const std::string E_L("E_L")
const std::string I_e("I_e")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string gsl_error_tol("gsl_error_tol")
const std::string V_th("V_th")
const std::string V_peak("V_peak")
const std::string E_in("E_in")
const std::string target("target")
const std::string tau_syn_ex("tau_syn_ex")
const std::string tau_w("tau_w")
const std::string Delta_T("Delta_T")
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