1. A method of updating an efficacy of a connection configured to communicate an input to an artificial spiking neuron, the method comprising: determining a similarity measure between the input and a neuron output; identifying one or more components associated with one or more lag values, respectively, from the similarity measure; and updating the efficacy based on the one or more components.