Stimulus and Response Generalization: A Stochastic Model Relating Generalization to Distance in Psychological Space | Synapse