a nonlinear detrending percentile preprocessor