23#ifndef AEIF_COND_ALPHA_H
24#define AEIF_COND_ALPHA_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int aeif_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
69extern "C" int aeif_cond_alpha_dynamics_DT0(
double,
const double*,
double*,
void* );
208void register_aeif_cond_alpha(
const std::string& name );
215 aeif_cond_alpha(
const aeif_cond_alpha& );
216 ~aeif_cond_alpha()
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( Time
const&,
const long,
const long )
override;
249 friend int aeif_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
252 friend class RecordablesMap< aeif_cond_alpha >;
253 friend class UniversalDataLogger< aeif_cond_alpha >;
283 void get( Dictionary& )
const;
284 void set(
const Dictionary&, Node* node );
313 double y_[ STATE_VEC_SIZE ];
317 State_(
const Parameters_& );
318 State_(
const State_& );
320 State_& operator=(
const State_& );
322 void get( Dictionary& )
const;
323 void set(
const Dictionary&,
const Parameters_&, Node* );
333 Buffers_( aeif_cond_alpha& );
334 Buffers_(
const Buffers_&, aeif_cond_alpha& );
337 UniversalDataLogger< aeif_cond_alpha > logger_;
340 RingBuffer spike_exc_;
341 RingBuffer spike_inh_;
342 RingBuffer currents_;
346 gsl_odeiv_control* c_;
347 gsl_odeiv_evolve* e_;
348 gsl_odeiv_system sys_;
354 double IntegrationStep_;
385 unsigned int refractory_counts_;
391 template < State_::StateVecElems elem >
395 return S_.y_[ elem ];
406 static RecordablesMap< aeif_cond_alpha > recordablesMap_;
410aeif_cond_alpha::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
413 e.set_sender( *
this );
415 return target.handles_test_event( e, receptor_type );
419aeif_cond_alpha::handles_test_event(
SpikeEvent&,
size_t receptor_type )
421 if ( receptor_type != 0 )
429aeif_cond_alpha::handles_test_event(
CurrentEvent&,
size_t receptor_type )
431 if ( receptor_type != 0 )
441 if ( receptor_type != 0 )
449aeif_cond_alpha::get_status( Dictionary& d )
const
459aeif_cond_alpha::set_status(
const Dictionary& d )
461 Parameters_ ptmp = P_;
464 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