Adaptive Computation of Unimodal and Hysteresis Thresholds