23 #ifndef TSODYKS_CONNECTION_H
24 #define TSODYKS_CONNECTION_H
102 template<
typename target
identifierT>
189 template<
typename target
identifierT>
206 double_t Puu = (tau_fac_ == 0.0) ? 0.0 : std::exp(-h/tau_fac_);
207 double_t Pyy = std::exp(-h/tau_psc_);
208 double_t Pzz = std::exp(-h/tau_rec_);
211 double_t Pxy = ((Pzz - 1.0)*tau_rec_ - (Pyy - 1.0)*tau_psc_) / (tau_psc_ - tau_rec_);
220 x_ += Pxy * y_ + Pxz * z;
242 template<
typename target
identifierT>
255 template<
typename target
identifierT>
258 weight_(rhs.weight_),
259 tau_psc_(rhs.tau_psc_),
260 tau_fac_(rhs.tau_fac_),
261 tau_rec_(rhs.tau_rec_),
268 template<
typename target
identifierT>
271 ConnectionBase::get_status(d);
274 def<double_t>(
d,
"U", U_);
275 def<double_t>(
d,
"tau_psc", tau_psc_);
276 def<double_t>(
d,
"tau_rec", tau_rec_);
277 def<double_t>(
d,
"tau_fac", tau_fac_);
278 def<double_t>(
d,
"x", x_);
279 def<double_t>(
d,
"y", y_);
280 def<double_t>(
d,
"u", u_);
284 template<
typename target
identifierT>
291 updateValue<double_t>(
d,
"x",
x);
292 updateValue<double_t>(
d,
"y",
y);
300 ConnectionBase::set_status(d, cm);
303 updateValue<double_t>(
d,
"U", U_);
304 updateValue<double_t>(
d,
"tau_psc", tau_psc_);
305 updateValue<double_t>(
d,
"tau_rec", tau_rec_);
306 updateValue<double_t>(
d,
"tau_fac", tau_fac_);
308 updateValue<double_t>(
d,
"u", u_);
313 #endif // TSODYKS_CONNECTION_H
~TsodyksConnection()
Default Destructor.
Definition: tsodyks_connection.h:125
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
TsodyksConnection()
Default Constructor.
Definition: tsodyks_connection.h:243
Definition: lockptrdatum.h:40
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
port handles_test_event(SpikeEvent &, rport)
Check if the node can handle a particular event and receptor type.
Definition: tsodyks_connection.h:160
const rport invalid_port_
Value for invalid connection port number.
Definition: nest.h:160
const Name weight("weight")
Connection parameters.
Definition: nest_names.h:344
Encapsulates information which is sent between Nodes.
Definition: event.h:73
double_t u_
actual probability of release
Definition: tsodyks_connection.h:179
void set_weight(weight t)
Set weight of the event.
Definition: event.h:751
void check_connection(Node &s, Node &t, rport receptor_type, double_t, const CommonPropertiesType &)
Definition: tsodyks_connection.h:163
void set_weight(double_t w)
Definition: tsodyks_connection.h:169
long_t rport
Connection port number to distinguish incoming connections, also called receiver port.
Definition: nest.h:147
double_t tau_rec_
[ms] time constant for recovery
Definition: tsodyks_connection.h:175
void set_status(const DictionaryDatum &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition: tsodyks_connection.h:285
Node * get_target(thread t) const
Definition: connection.h:155
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
Connection< targetidentifierT > ConnectionBase
Definition: tsodyks_connection.h:108
const Name w("w")
Specific to Brette & Gerstner 2005 (aeif_cond-*)
Definition: nest_names.h:343
const Name y("y")
Definition: topology_names.h:52
void set_delay(delay)
Set the transmission delay of the event.
Definition: event.h:781
double_t tau_fac_
[ms] time constant for fascilitation
Definition: tsodyks_connection.h:174
Time const & get_stamp() const
Return time stamp of the event.
Definition: event.h:757
double_t U_
asymptotic value of probability of release
Definition: tsodyks_connection.h:176
const Name target("target")
Connection parameters.
Definition: nest_names.h:282
Base class for dummy nodes used in connection testing.
Definition: connection.h:64
Definition: tsodyks_connection.h:103
void send(Event &e, thread t, double_t t_lastspike, const CommonSynapseProperties &cp)
Send an event to the receiver of this connection.
Definition: tsodyks_connection.h:191
Definition: tsodyks_connection.h:154
const Name x("x")
current scaling factor of the synaptic weight [0...1] (Tsodyks2_connection)
Definition: nest_names.h:356
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition: exceptions.h:420
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
CommonSynapseProperties CommonPropertiesType
Definition: tsodyks_connection.h:107
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
double_t tau_psc_
[ms] time constant of postsyn current
Definition: tsodyks_connection.h:173
double_t get_ms() const
Definition: nest_time.h:389
double_t weight_
Definition: tsodyks_connection.h:172
const Name size_of("sizeof")
Connection parameters.
Definition: nest_names.h:259
Class containing the common properties for all connections of a certain type.
Definition: common_synapse_properties.h:44
Base class for representing connections.
Definition: connection.h:85
Event for spike information.
Definition: event.h:320
Base class for all NEST network objects.
Definition: node.h:96
Definition: connector_model.h:38
int_t thread
Thread index type.
Definition: nest.h:133
const double e
Definition: numerics.cpp:62
double_t y_
amount of resources in active state
Definition: tsodyks_connection.h:178
void get_status(DictionaryDatum &d) const
Get all properties of this connection and put them into a dictionary.
Definition: tsodyks_connection.h:269
double_t x_
amount of resources in recovered state
Definition: tsodyks_connection.h:177