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* );
230void register_iaf_cond_beta(
const std::string& name );
232class iaf_cond_beta :
public ArchivingNode
239 iaf_cond_beta(
const iaf_cond_beta& );
240 ~iaf_cond_beta()
override;
249 using Node::handles_test_event;
251 size_t send_test_event( Node& tagret,
size_t receptor_type, synindex,
bool )
override;
253 size_t handles_test_event( SpikeEvent&,
size_t )
override;
254 size_t handles_test_event( CurrentEvent&,
size_t )
override;
255 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
257 void handle( SpikeEvent& )
override;
258 void handle( CurrentEvent& )
override;
259 void handle( DataLoggingRequest& )
override;
261 void get_status(
Dictionary& )
const override;
262 void set_status(
const Dictionary& )
override;
265 void init_buffers_()
override;
266 double get_normalisation_factor(
double,
double );
267 void pre_run_hook()
override;
268 void update( Time
const&,
const long,
const long )
override;
275 friend int iaf_cond_beta_dynamics(
double,
const double*,
double*,
void* );
278 friend class RecordablesMap< iaf_cond_beta >;
279 friend class UniversalDataLogger< iaf_cond_beta >;
333 double y[ STATE_VEC_SIZE ];
338 State_(
const Parameters_& );
339 State_(
const State_& );
341 State_& operator=(
const State_& );
349 void set(
const Dictionary&,
const Parameters_&, Node* );
363 Buffers_( iaf_cond_beta& );
364 Buffers_(
const Buffers_&, iaf_cond_beta& );
367 UniversalDataLogger< iaf_cond_beta > logger_;
370 RingBuffer spike_exc_;
371 RingBuffer spike_inh_;
372 RingBuffer currents_;
376 gsl_odeiv_control* c_;
377 gsl_odeiv_evolve* e_;
378 gsl_odeiv_system sys_;
384 double IntegrationStep_;
417 int RefractoryCounts;
423 template < State_::StateVecElems elem >
434 return Time::get_resolution().get_ms() * S_.r;
446 static RecordablesMap< iaf_cond_beta > recordablesMap_;
453iaf_cond_beta::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
456 e.set_sender( *
this );
457 return target.handles_test_event( e, receptor_type );
461iaf_cond_beta::handles_test_event( SpikeEvent&,
size_t receptor_type )
463 if ( receptor_type != 0 )
465 throw UnknownReceptorType( receptor_type, get_name() );
471iaf_cond_beta::handles_test_event( CurrentEvent&,
size_t receptor_type )
473 if ( receptor_type != 0 )
475 throw UnknownReceptorType( receptor_type, get_name() );
481iaf_cond_beta::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
483 if ( receptor_type != 0 )
485 throw UnknownReceptorType( receptor_type, get_name() );
487 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
491iaf_cond_beta::get_status(
Dictionary& d )
const
501iaf_cond_beta::set_status(
const Dictionary& d )
503 Parameters_ ptmp = P_;
506 stmp.set( d, ptmp,
this );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition archiving_node.cpp:220
void set_status(const Dictionary &d) override
Change properties of the node according to the entries in the dictionary.
Definition archiving_node.cpp:236
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
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
const double e
Definition numerics.cpp:32