calibrate function

Calibration of probabilities according to the given prior.