23#ifndef AEIF_PSC_ALPHA_H
24#define AEIF_PSC_ALPHA_H
32#include <gsl/gsl_errno.h>
33#include <gsl/gsl_matrix.h>
34#include <gsl/gsl_odeiv.h>
58extern "C" int aeif_psc_alpha_dynamics(
double,
const double*,
double*,
void* );
198void register_aeif_psc_alpha(
const std::string& name );
205 aeif_psc_alpha(
const aeif_psc_alpha& );
206 ~aeif_psc_alpha()
override;
214 using Node::handles_test_event;
216 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
218 void handle( SpikeEvent& )
override;
219 void handle( CurrentEvent& )
override;
220 void handle( DataLoggingRequest& )
override;
222 size_t handles_test_event( SpikeEvent&,
size_t )
override;
223 size_t handles_test_event( CurrentEvent&,
size_t )
override;
224 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
226 void get_status( Dictionary& )
const override;
227 void set_status(
const Dictionary& )
override;
230 void init_buffers_()
override;
231 void pre_run_hook()
override;
232 void update( Time
const&,
const long,
const long )
override;
239 friend int aeif_psc_alpha_dynamics(
double,
const double*,
double*,
void* );
242 friend class RecordablesMap< aeif_psc_alpha >;
243 friend class UniversalDataLogger< aeif_psc_alpha >;
271 void get( Dictionary& )
const;
272 void set(
const Dictionary&, Node* node );
301 double y_[ STATE_VEC_SIZE ];
305 State_(
const Parameters_& );
306 State_(
const State_& );
308 State_& operator=(
const State_& );
310 void get( Dictionary& )
const;
311 void set(
const Dictionary&,
const Parameters_&, Node* );
321 Buffers_( aeif_psc_alpha& );
322 Buffers_(
const Buffers_&, aeif_psc_alpha& );
325 UniversalDataLogger< aeif_psc_alpha > logger_;
328 RingBuffer spike_exc_;
329 RingBuffer spike_inh_;
330 RingBuffer currents_;
334 gsl_odeiv_control* c_;
335 gsl_odeiv_evolve* e_;
336 gsl_odeiv_system sys_;
342 double IntegrationStep_;
373 unsigned int refractory_counts_;
379 template < State_::StateVecElems elem >
383 return S_.y_[ elem ];
394 static RecordablesMap< aeif_psc_alpha > recordablesMap_;
398aeif_psc_alpha::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
401 e.set_sender( *
this );
403 return target.handles_test_event( e, receptor_type );
407aeif_psc_alpha::handles_test_event(
SpikeEvent&,
size_t receptor_type )
409 if ( receptor_type != 0 )
417aeif_psc_alpha::handles_test_event(
CurrentEvent&,
size_t receptor_type )
419 if ( receptor_type != 0 )
429 if ( receptor_type != 0 )
437aeif_psc_alpha::get_status( Dictionary& d )
const
447aeif_psc_alpha::set_status(
const Dictionary& d )
449 Parameters_ ptmp = P_;
452 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 tau_syn_in("tau_syn_in")
const std::string E_L("E_L")
const std::string I_e("I_e")
const std::string recordables("recordables")
const std::string C_m("C_m")
const std::string gsl_error_tol("gsl_error_tol")
const std::string V_th("V_th")
const std::string V_peak("V_peak")
const std::string target("target")
const std::string tau_syn_ex("tau_syn_ex")
const std::string tau_w("tau_w")
const std::string Delta_T("Delta_T")
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