Digital filter for use in noisy environments