added signal masking option to the estimate_noise method.