31#include <gsl/gsl_errno.h>
32#include <gsl/gsl_matrix.h>
33#include <gsl/gsl_odeiv.h>
49extern "C" int gif_cond_exp_dynamics(
double,
const double*,
double*,
void* );
223void register_gif_cond_exp(
const std::string& name );
230 gif_cond_exp(
const gif_cond_exp& );
231 ~gif_cond_exp()
override;
239 using Node::handles_test_event;
241 size_t send_test_event( Node&,
size_t, synindex,
bool )
override;
243 void handle( SpikeEvent& )
override;
244 void handle( CurrentEvent& )
override;
245 void handle( DataLoggingRequest& )
override;
247 size_t handles_test_event( SpikeEvent&,
size_t )
override;
248 size_t handles_test_event( CurrentEvent&,
size_t )
override;
249 size_t handles_test_event( DataLoggingRequest&,
size_t )
override;
252 void get_status( Dictionary& )
const override;
253 void set_status(
const Dictionary& )
override;
256 void init_buffers_()
override;
257 void pre_run_hook()
override;
259 void update( Time
const&,
const long,
const long )
override;
262 friend int gif_cond_exp_dynamics(
double,
const double*,
double*,
void* );
265 friend class RecordablesMap< gif_cond_exp >;
266 friend class UniversalDataLogger< gif_cond_exp >;
297 std::vector< double > tau_stc_;
300 std::vector< double > q_stc_;
303 std::vector< double > tau_sfa_;
306 std::vector< double > q_sfa_;
315 void get( Dictionary& )
const;
316 void set(
const Dictionary&, Node* node );
336 double neuron_state_[ STATE_VEC_SIZE ];
342 std::vector< double > sfa_elems_;
343 std::vector< double > stc_elems_;
348 State_(
const Parameters_& );
349 State_(
const State_& );
351 State_& operator=(
const State_& );
353 void get( Dictionary&,
const Parameters_& )
const;
354 void set(
const Dictionary&,
const Parameters_&, Node* );
364 Buffers_( gif_cond_exp& );
365 Buffers_(
const Buffers_&, gif_cond_exp& );
368 RingBuffer spike_exc_;
369 RingBuffer spike_inh_;
370 RingBuffer currents_;
373 UniversalDataLogger< gif_cond_exp > logger_;
377 gsl_odeiv_control* c_;
378 gsl_odeiv_evolve* e_;
379 gsl_odeiv_system sys_;
385 double IntegrationStep_;
395 std::vector< double > P_sfa_;
396 std::vector< double > P_stc_;
400 unsigned int RefractoryCounts_;
406 template < State_::StateVecElems elem >
410 return S_.neuron_state_[ elem ];
442 static RecordablesMap< gif_cond_exp > recordablesMap_;
446gif_cond_exp::send_test_event(
Node& target,
size_t receptor_type,
synindex,
bool )
449 e.set_sender( *
this );
451 return target.handles_test_event( e, receptor_type );
456gif_cond_exp::handles_test_event(
SpikeEvent&,
size_t receptor_type )
458 if ( receptor_type != 0 )
466gif_cond_exp::handles_test_event(
CurrentEvent&,
size_t receptor_type )
468 if ( receptor_type != 0 )
478 if ( receptor_type != 0 )
486gif_cond_exp::get_status( Dictionary& d )
const
495gif_cond_exp::set_status(
const Dictionary& d )
497 Parameters_ ptmp = P_;
500 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 recordables("recordables")
const std::string gsl_error_tol("gsl_error_tol")
const std::string target("target")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
BaseRandomGenerator * RngPtr
Definition random_generators.h:50
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