105template <
typename target
identifierT >
199template <
typename target
identifierT >
207template <
typename target
identifierT >
212 const double t_spike = e.get_stamp().get_ms();
213 const double h = t_spike - t_lastspike_;
214 p_ = 1 - ( 1 - p_ ) * std::exp( -h / tau_P_ );
217 e.set_receiver( *get_target( t ) );
218 e.set_weight( weight_ * p_ );
219 e.set_delay_steps( get_delay_steps() );
220 e.set_rport( get_rport() );
224 p_ *= ( 1 - delta_P_ );
226 t_lastspike_ = t_spike;
231template <
typename target
identifierT >
238 , t_lastspike_( 0.0 )
242template <
typename target
identifierT >
246 ConnectionBase::get_status( d );
254template <
typename target
identifierT >
258 ConnectionBase::set_status( d, cm );
270 if ( delta_P_ < 0.0 or delta_P_ > 1.0 )
272 throw BadProperty(
"0 <= delta_P <= 1 required." );
275 if ( p_ < 0.0 or p_ > 1.0 )
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:67
Base class for representing connections.
Definition connection.h:110
void check_connection_(Node &dummy_target, Node &source, Node &target, const size_t receptor_type)
This function calls check_connection() on the sender to check if the receiver accepts the event type ...
Definition connection.h:319
long get_delay_steps() const
Return the delay of the connection in steps.
Definition connection.h:181
Node * get_target(const size_t tid) const
Definition connection.h:239
size_t get_rport() const
Definition connection.h:244
double get_delay() const
Return the delay of the connection in ms.
Definition connection.h:172
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
Event for spike information.
Definition event.h:418
Definition ht_synapse.h:162
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition ht_synapse.h:168
Definition ht_synapse.h:107
Connection< targetidentifierT > ConnectionBase
Definition ht_synapse.h:110
double t_lastspike_
Time point of last spike emitted.
Definition ht_synapse.h:196
ht_synapse()
Default Constructor.
Definition ht_synapse.h:232
void set_weight(double w)
allows efficient initialization from ConnectorModel::add_connection()
Definition ht_synapse.h:183
virtual void set_status(const Dictionary &d, ConnectorModel &cm)
Set properties of this connection from the values given in dictionary.
Definition ht_synapse.h:256
static constexpr ConnectionModelProperties properties
Definition ht_synapse.h:112
double weight_
Synaptic weight.
Definition ht_synapse.h:189
bool send(Event &e, size_t t, const CommonSynapseProperties &cp)
Send an event to the receiver of this connection.
Definition ht_synapse.h:209
double tau_P_
Time constant for recovery [ms].
Definition ht_synapse.h:191
double p_
Current pool size.
Definition ht_synapse.h:194
ht_synapse(const ht_synapse &)=default
Copy constructor.
double delta_P_
Fractional decrease in pool size per spike.
Definition ht_synapse.h:192
CommonSynapseProperties CommonPropertiesType
Definition ht_synapse.h:109
void check_connection(Node &s, Node &t, size_t receptor_type, const CommonPropertiesType &)
Definition ht_synapse.h:175
virtual void get_status(Dictionary &d) const
Get all properties of this connection and put them into a dictionary.
Definition ht_synapse.h:244
virtual ~ht_synapse()
Default Destructor.
Definition ht_synapse.h:140
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:271
const std::string tau_P("tau_P")
const std::string delta_P("delta_P")
const std::string weight("weight")
const std::string size_of("sizeof")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_ht_synapse(const std::string &name)
Definition ht_synapse.cpp:32
ConnectionModelProperties
Definition connector_model.h:49
constexpr size_t invalid_port
Value for invalid connection port number.
Definition nest_types.h:141