Regression and classification of thresholds.