STDP and Attractor Network Models of Associative Learning