23#ifndef IAF_COND_ALPHA_H
24#define IAF_COND_ALPHA_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int iaf_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
216void register_iaf_cond_alpha(
const std::string& name );
225 iaf_cond_alpha(
const iaf_cond_alpha& );
226 ~iaf_cond_alpha()
override;
235 using Node::handles_test_event;
237 size_t send_test_event( Node& tagret,
size_t receptor_type, synindex,
bool )
override;
239 size_t handles_test_event( SpikeEvent&,
size_t )
override;
240 size_t handles_test_event( CurrentEvent&,
size_t )
override;
241 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
243 void handle( SpikeEvent& )
override;
244 void handle( CurrentEvent& )
override;
245 void handle( DataLoggingRequest& )
override;
247 void get_status( Dictionary& )
const override;
248 void set_status(
const Dictionary& )
override;
251 void init_buffers_()
override;
252 void pre_run_hook()
override;
253 void update( Time
const&,
const long,
const long )
override;
260 friend int iaf_cond_alpha_dynamics(
double,
const double*,
double*,
void* );
263 friend class RecordablesMap< iaf_cond_alpha >;
264 friend class UniversalDataLogger< iaf_cond_alpha >;
286 void get( Dictionary& )
const;
287 void set(
const Dictionary&, Node* node );
316 double y[ STATE_VEC_SIZE ];
321 State_(
const Parameters_& );
322 State_(
const State_& );
324 State_& operator=(
const State_& );
326 void get( Dictionary& )
const;
332 void set(
const Dictionary&,
const Parameters_&, Node* );
346 Buffers_( iaf_cond_alpha& );
347 Buffers_(
const Buffers_&, iaf_cond_alpha& );
350 UniversalDataLogger< iaf_cond_alpha > logger_;
353 RingBuffer spike_exc_;
354 RingBuffer spike_inh_;
355 RingBuffer currents_;
359 gsl_odeiv_control* c_;
360 gsl_odeiv_evolve* e_;
361 gsl_odeiv_system sys_;
367 double IntegrationStep_;
400 int RefractoryCounts;
406 template < State_::StateVecElems elem >
417 return Time::get_resolution().get_ms() * S_.r;
429 static RecordablesMap< iaf_cond_alpha > recordablesMap_;
436iaf_cond_alpha::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
439 e.set_sender( *
this );
440 return target.handles_test_event( e, receptor_type );
444iaf_cond_alpha::handles_test_event(
SpikeEvent&,
size_t receptor_type )
446 if ( receptor_type != 0 )
454iaf_cond_alpha::handles_test_event(
CurrentEvent&,
size_t receptor_type )
456 if ( receptor_type != 0 )
466 if ( receptor_type != 0 )
474iaf_cond_alpha::get_status( Dictionary& d )
const
484iaf_cond_alpha::set_status(
const Dictionary& d )
486 Parameters_ ptmp = P_;
489 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 t_ref("t_ref")
const std::string E_L("E_L")
const std::string I_e("I_e")
const std::string V_reset("V_reset")
const std::string recordables("recordables")
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_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