Example STDP weight change curves. The weight is increased if the postsynaptic spike occurs at the time of, or later than the presynaptic spike; otherwise the weight is decreased. The magnitude of the weight change decreases with the time interval between the pre- and postsynaptic spikes. No change occurs if the spikes are too far apart in time.