I am looking at the pseudocode of TM in BAMI. I have this confusion in line 22 about the meaning of
numActivePotentialSynapses. Does it return the number of both ACTIVE synapses and POTENTIAL synapses connecting to active cells in previous timestep?
If thats the case, then we cannot say that the segment will definitely have SYNAPSE_SAMPLE_SIZE active synapses after growing segments since potential synapses are even part of the SYNAPSE_SAMPLE_SIZE.
My argument is that line 22 should be just
newSynapseCount = (SYNAPSE_SAMPLE_SIZE - 23. numActiveSynapses(t-1, segment))
Please correct me if I am wrong.