deviance2 function

Deviance of a psychometric function