23 #ifndef QUANTAL_STP_CONNECTION_H
24 #define QUANTAL_STP_CONNECTION_H
83 template<
typename target
identifierT>
163 template<
typename target
identifierT>
168 const int vp=get_target(t)->get_vp();
173 const double_t p_decay = std::exp(-h/tau_rec_);
174 const double_t u_decay = (tau_fac_ < 1.0e-10) ? 0.0 : std::exp(-h/tau_fac_);
177 u_= U_+u_*(1.-U_)*u_decay;
180 for (
int depleted=n_-a_; depleted > 0; --depleted)
182 if (net->
get_rng(vp)->drand() < (1.0-p_decay))
188 for (
int i=a_; i> 0; --i)
190 if (net->
get_rng(vp)->drand() < u_)
207 #endif // QUANTAL_STP_CONNECTION_H
void set_rport(rport p)
Set the receiver port number (r-port).
Definition: event.h:817
void set_receiver(Node &)
Change pointer to receiving Node.
Definition: event.h:708
const Name receptor_type("receptor_type")
Connection parameters.
Definition: nest_names.h:240
Connection< targetidentifierT > ConnectionBase
Definition: quantal_stp_connection.h:89
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
long_t get_delay_steps() const
Return the delay of the connection in steps.
Definition: connection.h:126
void check_connection_(Node &dummy_target, Node &source, Node &target, rport receptor_type)
This function calls check_connection() on the sender to check if the receiver accepts the event type ...
Definition: connection.h:183
const rport invalid_port_
Value for invalid connection port number.
Definition: nest.h:160
void check_connection(Node &s, Node &t, rport receptor_type, double_t, const CommonPropertiesType &)
Definition: quantal_stp_connection.h:137
void set_weight(double_t w)
Definition: quantal_stp_connection.h:143
double_t tau_rec_
[ms] time constant for recovery from depression (D)
Definition: quantal_stp_connection.h:149
Encapsulates information which is sent between Nodes.
Definition: event.h:73
void set_weight(weight t)
Set weight of the event.
Definition: event.h:751
long_t rport
Connection port number to distinguish incoming connections, also called receiver port.
Definition: nest.h:147
port handles_test_event(SpikeEvent &, rport)
Check if the node can handle a particular event and receptor type.
Definition: quantal_stp_connection.h:134
double_t u_
dynamic value of probability of release
Definition: quantal_stp_connection.h:148
Node * get_target(thread t) const
Definition: connection.h:155
void send(Event &e, thread t, double_t t_lastspike, const CommonSynapseProperties &cp)
Send an event to the receiver of this connection.
Definition: quantal_stp_connection.h:165
const Name h("h")
Summed input to a neuron (Ginzburg neuron)
Definition: nest_names.h:158
double_t get_delay() const
Return the delay of the connection in ms.
Definition: connection.h:121
const Name w("w")
Specific to Brette & Gerstner 2005 (aeif_cond-*)
Definition: nest_names.h:343
void set_delay(delay)
Set the transmission delay of the event.
Definition: event.h:781
Quantal_StpConnection()
Default Constructor.
Definition: quantal_stp_connection_impl.h:63
Time const & get_stamp() const
Return time stamp of the event.
Definition: event.h:757
CommonSynapseProperties CommonPropertiesType
Definition: quantal_stp_connection.h:88
Base class for dummy nodes used in connection testing.
Definition: connection.h:64
librandom::RngPtr get_rng(thread thrd=0) const
Get random number client of a thread.
Definition: network.h:1157
const Name vp("vp")
Node parameter.
Definition: nest_names.h:341
Main administrative interface to the network.
Definition: network.h:135
double_t tau_fac_
[ms] time constant for facilitation (F)
Definition: quantal_stp_connection.h:150
long_t port
Connection port number to distinguis outgoing connections.
Definition: nest.h:155
double double_t
Double precision floating point numbers.
Definition: nest.h:93
rport get_rport() const
Definition: connection.h:156
virtual port handles_test_event(SpikeEvent &, rport receptor_type)
Check if the node can handle a particular event and receptor type.
Definition: node.cpp:203
int n_
Number of release sites.
Definition: quantal_stp_connection.h:151
Definition: quantal_stp_connection.h:84
double_t get_ms() const
Definition: nest_time.h:389
Class containing the common properties for all connections of a certain type.
Definition: common_synapse_properties.h:44
static Network * network()
Return pointer to network driver class.
Definition: node.h:813
void set_status(const DictionaryDatum &d, ConnectorModel &cm)
Set default properties of this connection from the values given in dictionary.
Definition: quantal_stp_connection_impl.h:102
Base class for representing connections.
Definition: connection.h:85
Definition: quantal_stp_connection.h:128
double_t weight_
synaptic weight
Definition: quantal_stp_connection.h:146
Event for spike information.
Definition: event.h:320
Base class for all NEST network objects.
Definition: node.h:96
double_t U_
unit increment of a facilitating synapse (U)
Definition: quantal_stp_connection.h:147
void get_status(DictionaryDatum &d) const
Get all properties of this connection and put them into a dictionary.
Definition: quantal_stp_connection_impl.h:88
Definition: connector_model.h:38
int_t thread
Thread index type.
Definition: nest.h:133
const double e
Definition: numerics.cpp:62
int a_
Number of available release sites.
Definition: quantal_stp_connection.h:152