A Probabilistic Theory of Pattern Recognition