An Adaptive Noise Filtering Algorithm Based on the Maximum Noise Fraction