@@ -45,15 +45,30 @@ struct LIFNeuron;
4545template <>
4646struct default_values <LIFNeuron>
4747{
48+ /* *
49+ * @brief Default value for potential.
50+ */
4851 constexpr static float potential_ = 0 ;
4952
53+ /* *
54+ * @brief Default value for activation threshold.
55+ */
5056 constexpr static float activation_threshold_ = 1 ;
5157
58+ /* *
59+ * @brief Default value for leak coefficient.
60+ */
5261 constexpr static float leak_coefficient_ = 1 ;
5362
54- constexpr static uint32_t refract_counter_ = 0 ;
63+ /* *
64+ * @brief Default value for refract counter.
65+ */
66+ constexpr static float refract_counter_ = 0 ;
5567
56- constexpr static uint32_t refract_period_ = 0 ;
68+ /* *
69+ * @brief Default value for refract period.
70+ */
71+ constexpr static float refract_period_ = 0 ;
5772};
5873
5974
@@ -63,14 +78,30 @@ struct default_values<LIFNeuron>
6378template <>
6479struct neuron_parameters <LIFNeuron>
6580{
81+ /* *
82+ * @brief If neuron's potential exceeds activation_threshold, spike is produced, and potential is reset.
83+ */
6684 float potential_ = default_values<LIFNeuron>::potential_;
6785
86+ /* *
87+ * @brief Threshold for neuron activation.
88+ */
6889 float activation_threshold_ = default_values<LIFNeuron>::activation_threshold_;
6990
91+ /* *
92+ * @brief Multiplier of potential on each pre-impact step.
93+ */
7094 float leak_coefficient_ = default_values<LIFNeuron>::leak_coefficient_;
7195
96+ /* *
97+ * @brief Refract counter. On neuron activation, counter is set to refract_period and decremented on each step.
98+ * Incoming impacts are ignored if refract_counter > 0.
99+ */
72100 float refract_counter_ = default_values<LIFNeuron>::refract_counter_;
73101
102+ /* *
103+ * @brief Refract period for refract counter.
104+ */
74105 float refract_period_ = default_values<LIFNeuron>::refract_period_;
75106};
76107
0 commit comments