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=10log10(s22n22)

The signal vector s is in the standard input, the noise vector n is in the file specified by noise= parameter.

10 previous programs of the month: