23#ifndef IAF_COND_BETA_H
24#define IAF_COND_BETA_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
57extern "C" int iaf_cond_beta_dynamics(
double,
const double*,
double*,
void* );
236void register_iaf_cond_beta(
const std::string& name );
245 iaf_cond_beta(
const iaf_cond_beta& );
246 ~iaf_cond_beta()
override;
255 using Node::handles_test_event;
257 size_t send_test_event( Node& tagret,
size_t receptor_type, synindex,
bool )
override;
259 size_t handles_test_event( SpikeEvent&,
size_t )
override;
260 size_t handles_test_event( CurrentEvent&,
size_t )
override;
261 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
263 void handle( SpikeEvent& )
override;
264 void handle( CurrentEvent& )
override;
265 void handle( DataLoggingRequest& )
override;
267 void get_status( Dictionary& )
const override;
268 void set_status(
const Dictionary& )
override;
271 void init_buffers_()
override;
272 double get_normalisation_factor(
double,
double );
273 void pre_run_hook()
override;
274 void update( Time
const&,
const long,
const long )
override;
281 friend int iaf_cond_beta_dynamics(
double,
const double*,
double*,
void* );
284 friend class RecordablesMap< iaf_cond_beta >;
285 friend class UniversalDataLogger< iaf_cond_beta >;
309 void get( Dictionary& )
const;
310 void set(
const Dictionary&, Node* node );
339 double y[ STATE_VEC_SIZE ];
344 State_(
const Parameters_& );
345 State_(
const State_& );
347 State_& operator=(
const State_& );
349 void get( Dictionary& )
const;
355 void set(
const Dictionary&,
const Parameters_&, Node* );
369 Buffers_( iaf_cond_beta& );
370 Buffers_(
const Buffers_&, iaf_cond_beta& );
373 UniversalDataLogger< iaf_cond_beta > logger_;
376 RingBuffer spike_exc_;
377 RingBuffer spike_inh_;
378 RingBuffer currents_;
382 gsl_odeiv_control* c_;
383 gsl_odeiv_evolve* e_;
384 gsl_odeiv_system sys_;
390 double IntegrationStep_;
423 int RefractoryCounts;
429 template < State_::StateVecElems elem >
440 return Time::get_resolution().get_ms() * S_.r;
452 static RecordablesMap< iaf_cond_beta > recordablesMap_;
459iaf_cond_beta::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
462 e.set_sender( *
this );
463 return target.handles_test_event( e, receptor_type );
467iaf_cond_beta::handles_test_event(
SpikeEvent&,
size_t receptor_type )
469 if ( receptor_type != 0 )
477iaf_cond_beta::handles_test_event(
CurrentEvent&,
size_t receptor_type )
479 if ( receptor_type != 0 )
489 if ( receptor_type != 0 )
497iaf_cond_beta::get_status( Dictionary& d )
const
507iaf_cond_beta::set_status(
const Dictionary& d )
509 Parameters_ ptmp = P_;
512 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 tau_rise_in("tau_rise_in")
const std::string tau_decay_in("tau_decay_in")
const std::string E_in("E_in")
const std::string tau_decay_ex("tau_decay_ex")
const std::string target("target")
const std::string E_ex("E_ex")
const std::string tau_rise_ex("tau_rise_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