added functions for computing prediction intervals for detect objects