script para medir signal-to-noise ratio