Signal-to-Noise Ratio (SNR)
Reference
Signal to Noise Ratio.
nsnr(distorted, reference, normalization_db=75)
Calculate the normalized signal-to-noise ratio restricted to range of 0 to 1.
Source code in vibromaf/metrics/snr.py
snr(distorted, reference)
Calculate the signal-to-noise ratio.
Parameters
distorted: np.array
Distorted signal.reference: np.array
Reference signal.
Returns
float
The SNR.