refractoring

This commit is contained in:
2023-05-16 23:24:56 +07:00
parent f53adf288d
commit fbc40ccef4
3 changed files with 4 additions and 12 deletions

View File

@@ -166,6 +166,8 @@ function (n::alif_neuron)(kfn::knowledgeFn)
n.phi = (n.gammaPd / n.v_th) * max(0, 1 - (n.v_t1 - n.av_th) / n.v_th)
n.decayedEpsilonRec = n.alpha * n.epsilonRec
n.epsilonRec = n.decayedEpsilonRec + n.z_i_t
n.epsilonRecA = (n.phi * n.epsilonRec) +
((n.rho - (n.phi * n.beta)) * n.epsilonRecA)
end
end