Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
delta.h
Go to the documentation of this file.
1
22#pragma once
23
24#include <cinttypes>
25#include <numeric>
26
27#include "output_types.h"
28#include "type_traits.h"
29
33namespace knp::synapse_traits
34{
39struct DeltaSynapse;
40
41
45template <>
46struct default_values<DeltaSynapse>
47{
51 constexpr static float weight_ = 0.0F;
52
57 constexpr static uint32_t delay_ = 1;
58
62 constexpr static OutputType output_type_ = OutputType::EXCITATORY;
63};
64
65
69template <>
70struct synapse_parameters<DeltaSynapse>
71{
76 : weight_(default_values<DeltaSynapse>::weight_),
77 delay_(default_values<DeltaSynapse>::delay_),
78 output_type_(default_values<DeltaSynapse>::output_type_)
79 {
80 }
81
89 synapse_parameters(float weight, uint32_t delay, knp::synapse_traits::OutputType type)
90 : weight_(weight), delay_(delay), output_type_(type)
91 {
92 }
93
97 float weight_;
98
103 uint32_t delay_;
104
111};
112
113} // namespace knp::synapse_traits
Namespace for synapse traits.
Definition all_traits.h:35
OutputType
Types of synapses. This parameter is used for projection-population interaction.
@ EXCITATORY
Excitatory synapse type.
Enumeration of different ways that a synaptic impact may influence a neuron.
Structure for synapse default values.
Definition type_traits.h:43
Structure for synapse parameters.
Definition type_traits.h:35
synapse_parameters(float weight, uint32_t delay, knp::synapse_traits::OutputType type)
Constructor.
Definition delta.h:89
Common synapse type traits.