refractoring

This commit is contained in:
2023-05-17 15:08:14 +07:00
parent ab3caad413
commit 95cad151dc
4 changed files with 104 additions and 104 deletions

View File

@@ -99,18 +99,18 @@ end
#------------------------------------------------------------------------------------------------100
""" passthrough_neuron forward()
""" passthroughNeuron forward()
"""
function (n::passthrough_neuron)(kfn::knowledgeFn)
function (n::passthroughNeuron)(kfn::knowledgeFn)
n.timeStep = kfn.timeStep
# n.global_tick = kfn.global_tick
end
#------------------------------------------------------------------------------------------------100
""" lif_neuron forward()
""" lifNeuron forward()
"""
function (n::lif_neuron)(kfn::knowledgeFn)
function (n::lifNeuron)(kfn::knowledgeFn)
n.timeStep = kfn.timeStep
# pulling other neuron's firing status at time t
@@ -151,9 +151,9 @@ end
#------------------------------------------------------------------------------------------------100
""" alif_neuron forward()
""" alifNeuron forward()
"""
function (n::alif_neuron)(kfn::knowledgeFn)
function (n::alifNeuron)(kfn::knowledgeFn)
n.timeStep = kfn.timeStep
n.z_i_t = getindex(kfn.firedNeurons_t0, n.subscriptionList)
@@ -197,10 +197,10 @@ end
#------------------------------------------------------------------------------------------------100
""" linear_neuron forward()
""" linearNeuron forward()
In this implementation, each output neuron is fully connected to every lif and alif neuron.
"""
function (n::linear_neuron)(kfn::T) where T<:knowledgeFn
function (n::linearNeuron)(kfn::T) where T<:knowledgeFn
n.timeStep = kfn.timeStep
# pulling other neuron's firing status at time t