Probability matching as a basis for detection and recognition decisions.