Added some plotting code to computeDetectionProbability.