err function

Error rate (err) as the probability of an incorrect decision.