sfsnr2 computes the signal-to-noise (SNR) ratio in decibells.
The following example from tccs/intshape/fsyn uses the SNR computation to compare the convergence of two different methods.
SNR is computed according to the equation
$SNR=\displaystyle 10\log_{10}\left(\frac{\Arrowvert \mathbf{s} \Arrowvert_2^2}{\Arrowvert\mathbf{n}\Arrowvert_2^2}\right)$
The signal vector $\mathbf{s}$ is in the standard input, the noise vector $\mathbf{n}$ is in the file specified by noise= parameter.
Thanks for finally talking about >Madagascar Development Blog