Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
stdp_add_rule.h
Go to the documentation of this file.
1
22#pragma once
23
24#include <cinttypes>
25#include <vector>
26
27#include "stdp_common.h"
28
29
33namespace knp::synapse_traits
34{
35
40template <typename SynapseType>
42{
46 using LinkedSynapseType = SynapseType;
47
51 // cppcheck-suppress unusedStructMember
52 float tau_plus_ = 10;
53
57 // cppcheck-suppress unusedStructMember
58 float tau_minus_ = 10;
59
63 // cppcheck-suppress unusedStructMember
64 std::vector<uint32_t> presynaptic_spike_times_;
65
69 // cppcheck-suppress unusedStructMember
70 std::vector<uint32_t> postsynaptic_spike_times_;
71};
72
73} // namespace knp::synapse_traits
Namespace for synapse traits.
Definition all_traits.h:35
STDP internal common templates.
STDP additive rule parameters.
SynapseType LinkedSynapseType
Type of the synapse linked with rule.
float tau_plus_
Time constant in milliseconds intended to increase the weight.
float tau_minus_
Time constant in milliseconds intended to decrease the weight.
std::vector< uint32_t > postsynaptic_spike_times_
Indexes of network execution steps on which spikes on the axon were generated.
std::vector< uint32_t > presynaptic_spike_times_
Indexes of network execution steps on which spikes on the synapse were generated.