SNR | R Documentation |
SNR
computes the Signal to Noise Ratio (SNR) between two signals, indicating the level of desired signal to the level of background noise.
SNR(x, y)
x |
Numeric vector/matrix. Original reference signal. |
y |
Numeric vector/matrix. Restored or noisy signal. |
Higher values of SNR indicate a cleaner signal compared to the noise level. The SNR is computed as the ratio of the power of the signal (or the square of the Euclidean norm of the signal) to the power of the noise (or the square of the Euclidean norm of the signal difference), represented in decibels (dB).
The SNR is defined by:
\mathrm{SNR}(x,y) = 20 \log_{10}\left(\frac{\|x\|_2}{\|x-y\|_2}\right)
SNR
Numeric. Signal to Noise Ratio.
PSNR
x <- cos(seq(0, 10, length=100))
y <- x + rnorm(100, sd=0.5)
SNR(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.