23#ifndef STDP_NN_RESTR_SYNAPSE_H
24#define STDP_NN_RESTR_SYNAPSE_H
122template <
typename target
identifierT >
216 return norm_w > 0.0 ? norm_w *
Wmax_ : 0.0;
231template <
typename target
identifierT >
240template <
typename target
identifierT >
245 double t_spike = e.get_stamp().get_ms();
253 std::deque< histentry >::iterator start;
254 std::deque< histentry >::iterator finish;
264 target->get_history(
t_lastspike_ - dendritic_delay, t_spike - dendritic_delay, &start, &finish );
268 if ( start != finish )
274 minus_dt =
t_lastspike_ - ( start->t_ + dendritic_delay );
278 assert( minus_dt < -1.0 *
kernel().connection_manager.get_stdp_eps() );
285 if ( start != finish )
287 double nearest_neighbor_Kminus;
288 double value_to_throw_away;
289 target->get_K_values( t_spike - dendritic_delay,
291 nearest_neighbor_Kminus,
297 e.set_receiver( *target );
311template <
typename target
identifierT >
325template <
typename target
identifierT >
340template <
typename target
identifierT >
356 throw BadProperty(
"Weight and Wmax must have same sign." );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition exceptions.h:680
Class containing the common properties for all connections of a certain type.
Definition common_synapse_properties.h:50
Base class for dummy nodes used in connection testing.
Definition connection.h:70
double get_delay_ms() const
Definition connection.h:262
void get_status(Dictionary &d) const
size_t get_rport() const
Definition connection.h:316
long get_delay_steps() const
Definition connection.h:271
void set_status(const Dictionary &d, ConnectorModel &cm)
Connection()
Definition connection.h:124
Node * get_target(const size_t tid) const
Definition connection.h:311
void check_connection_(Node &dummy_target, Node &source, Node &target, const synindex syn_id, const size_t receptor_type)
Definition connector_model.h:69
Encapsulate information sent between nodes.
Definition event.h:103
Base class for all NEST network objects.
Definition node.h:99
virtual void register_stdp_connection(double, double, double)
Register a STDP connection.
Definition node.cpp:211
Event for spike information.
Definition event.h:420
Definition stdp_nn_restr_synapse.h:176
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition stdp_nn_restr_synapse.h:182
double alpha_
Definition stdp_nn_restr_synapse.h:223
stdp_nn_restr_synapse & operator=(const stdp_nn_restr_synapse &)=default
void check_connection(Node &s, Node &t, const size_t receptor_type, const synindex syn_id, const CommonPropertiesType &)
Definition stdp_nn_restr_synapse.h:189
size_t get_rport() const
Definition connection.h:316
double mu_plus_
Definition stdp_nn_restr_synapse.h:224
void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition stdp_nn_restr_synapse.h:327
double weight_
Definition stdp_nn_restr_synapse.h:220
double get_delay_ms() const
Return the delay of the connection in ms.
Definition connection.h:262
static constexpr ConnectionModelProperties properties
Definition stdp_nn_restr_synapse.h:130
double lambda_
Definition stdp_nn_restr_synapse.h:222
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:271
double depress_(double w, double kminus)
Definition stdp_nn_restr_synapse.h:213
double facilitate_(double w, double kplus)
Definition stdp_nn_restr_synapse.h:206
Node * get_target(const size_t tid) const
Definition connection.h:311
bool send(Event &e, size_t t, const CommonSynapseProperties &cp)
Send an event to the receiver of this connection.
Definition stdp_nn_restr_synapse.h:242
double tau_plus_
Definition stdp_nn_restr_synapse.h:221
stdp_nn_restr_synapse(const stdp_nn_restr_synapse &)=default
Copy constructor.
stdp_nn_restr_synapse()
Default Constructor.
Definition stdp_nn_restr_synapse.h:312
void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition stdp_nn_restr_synapse.h:342
void set_weight(double w)
Definition stdp_nn_restr_synapse.h:199
CommonSynapseProperties CommonPropertiesType
Definition stdp_nn_restr_synapse.h:127
Connection< targetidentifierT, TotalDelay > ConnectionBase
Definition stdp_nn_restr_synapse.h:128
double Wmax_
Definition stdp_nn_restr_synapse.h:226
double t_lastspike_
Definition stdp_nn_restr_synapse.h:228
double mu_minus_
Definition stdp_nn_restr_synapse.h:225
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:282
const std::string mu_plus("mu_plus")
const std::string mu_minus("mu_minus")
const std::string lambda("lambda")
const std::string alpha("alpha")
const std::string tau_plus("tau_plus")
const std::string weight("weight")
const std::string size_of("sizeof")
const std::string Wmax("Wmax")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
KernelManager & kernel()
Definition kernel_manager.h:311
void register_stdp_nn_restr_synapse(const std::string &name)
Definition stdp_nn_restr_synapse.cpp:32
ConnectionModelProperties
Definition connector_model.h:49
@ HAS_DELAY
Definition connector_model.h:54
@ SUPPORTS_LBL
Definition connector_model.h:52
@ SUPPORTS_HPC
Definition connector_model.h:51
@ IS_PRIMARY
Definition connector_model.h:53
constexpr size_t invalid_port
Value for invalid connection port number.
Definition nest_types.h:147
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:121