Bayes error calculator