Added least-mean-square error thresholding