32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
35#include <gsl/gsl_sf_exp.h>
58extern "C" int hh_psc_alpha_dynamics(
double,
const double*,
double*,
void* );
234void register_hh_psc_alpha(
const std::string& name );
241 hh_psc_alpha(
const hh_psc_alpha& );
242 ~hh_psc_alpha()
override;
250 using Node::handles_test_event;
252 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
254 void handle( SpikeEvent& )
override;
255 void handle( CurrentEvent& )
override;
256 void handle( DataLoggingRequest& )
override;
258 size_t handles_test_event( SpikeEvent&,
size_t )
override;
259 size_t handles_test_event( CurrentEvent&,
size_t )
override;
260 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
262 void get_status( Dictionary& )
const override;
263 void set_status(
const Dictionary& )
override;
266 void init_buffers_()
override;
267 void pre_run_hook()
override;
268 void update( Time
const&,
const long,
const long )
override;
275 friend int hh_psc_alpha_dynamics(
double,
const double*,
double*,
void* );
278 friend class RecordablesMap< hh_psc_alpha >;
279 friend class UniversalDataLogger< hh_psc_alpha >;
301 void get( Dictionary& )
const;
302 void set(
const Dictionary&, Node* node );
335 double y_[ STATE_VEC_SIZE ];
338 State_(
const Parameters_& );
339 State_(
const State_& );
341 State_& operator=(
const State_& );
343 void get( Dictionary& )
const;
344 void set(
const Dictionary&, Node* node );
355 Buffers_( hh_psc_alpha& );
356 Buffers_(
const Buffers_&, hh_psc_alpha& );
359 UniversalDataLogger< hh_psc_alpha > logger_;
362 RingBuffer spike_exc_;
363 RingBuffer spike_inh_;
364 RingBuffer currents_;
368 gsl_odeiv_control* c_;
369 gsl_odeiv_evolve* e_;
370 gsl_odeiv_system sys_;
376 double IntegrationStep_;
396 double PSCurrInit_E_;
399 double PSCurrInit_I_;
401 int RefractoryCounts_;
407 template < State_::StateVecElems elem >
411 return S_.y_[ elem ];
422 static RecordablesMap< hh_psc_alpha > recordablesMap_;
427hh_psc_alpha::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
430 e.set_sender( *
this );
432 return target.handles_test_event( e, receptor_type );
437hh_psc_alpha::handles_test_event(
SpikeEvent&,
size_t receptor_type )
439 if ( receptor_type != 0 )
447hh_psc_alpha::handles_test_event(
CurrentEvent&,
size_t receptor_type )
449 if ( receptor_type != 0 )
459 if ( receptor_type != 0 )
467hh_psc_alpha::get_status( Dictionary& d )
const
477hh_psc_alpha::set_status(
const Dictionary& d )
479 Parameters_ ptmp = P_;
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 E_L("E_L")
const std::string I_e("I_e")
const std::string E_K("E_K")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string g_Na("g_Na")
const std::string E_Na("E_Na")
const std::string g_K("g_K")
const std::string target("target")
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