/** * Updates counter instance variables each cycle. * * @param c the {@link Connections} memory encapsulation * @param learn a boolean value indicating whether learning should be performed. Learning entails * updating the permanence values of the synapses, and hence modifying the 'state' of the * model. setting learning to 'off' might be useful for indicating separate training vs. * testing sets. */ public void updateBookeepingVars(Connections c, boolean learn) { c.spIterationNum += 1; if (learn) c.spIterationLearnNum += 1; }