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* );
136void register_iaf_cond_beta(
const std::string& name );
138class iaf_cond_beta :
public ArchivingNode
145 iaf_cond_beta(
const iaf_cond_beta& );
146 ~iaf_cond_beta()
override;
155 using Node::handles_test_event;
157 size_t send_test_event( Node& tagret,
size_t receptor_type, synindex,
bool )
override;
159 size_t handles_test_event( SpikeEvent&,
size_t )
override;
160 size_t handles_test_event( CurrentEvent&,
size_t )
override;
161 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
163 void handle( SpikeEvent& )
override;
164 void handle( CurrentEvent& )
override;
165 void handle( DataLoggingRequest& )
override;
167 void get_status(
Dictionary& )
const override;
168 void set_status(
const Dictionary& )
override;
171 void init_buffers_()
override;
172 double get_normalisation_factor(
double,
double );
173 void pre_run_hook()
override;
174 void update( Time
const&,
const long,
const long )
override;
181 friend int iaf_cond_beta_dynamics(
double,
const double*,
double*,
void* );
184 friend class RecordablesMap< iaf_cond_beta >;
185 friend class UniversalDataLogger< iaf_cond_beta >;
239 double y[ STATE_VEC_SIZE ];
244 State_(
const Parameters_& );
245 State_(
const State_& );
247 State_& operator=(
const State_& );
255 void set(
const Dictionary&,
const Parameters_&, Node* );
269 Buffers_( iaf_cond_beta& );
270 Buffers_(
const Buffers_&, iaf_cond_beta& );
273 UniversalDataLogger< iaf_cond_beta > logger_;
276 RingBuffer spike_exc_;
277 RingBuffer spike_inh_;
278 RingBuffer currents_;
282 gsl_odeiv_control* c_;
283 gsl_odeiv_evolve* e_;
284 gsl_odeiv_system sys_;
290 double IntegrationStep_;
323 int RefractoryCounts;
329 template < State_::StateVecElems elem >
340 return Time::get_resolution().get_ms() * S_.r;
352 static RecordablesMap< iaf_cond_beta > recordablesMap_;
359iaf_cond_beta::send_test_event( Node& target,
size_t receptor_type,
synindex,
bool )
362 e.set_sender( *
this );
363 return target.handles_test_event( e, receptor_type );
367iaf_cond_beta::handles_test_event( SpikeEvent&,
size_t receptor_type )
369 if ( receptor_type != 0 )
371 throw UnknownReceptorType( receptor_type, get_name() );
377iaf_cond_beta::handles_test_event( CurrentEvent&,
size_t receptor_type )
379 if ( receptor_type != 0 )
381 throw UnknownReceptorType( receptor_type, get_name() );
387iaf_cond_beta::handles_test_event( DataLoggingRequest& dlr,
size_t receptor_type )
389 if ( receptor_type != 0 )
391 throw UnknownReceptorType( receptor_type, get_name() );
393 return B_.logger_.connect_logging_device( dlr, recordablesMap_ );
397iaf_cond_beta::get_status(
Dictionary& d )
const
407iaf_cond_beta::set_status(
const Dictionary& d )
409 Parameters_ ptmp = P_;
412 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