function ratio = snr(s,n)

% snr -- Signal to Noise Ratio
%  Usage
%    ratio = snr(s,n)
%  Inputs
%    s      clean signal
%    n      noise
%  Outputs
%    ratio  the snr
%  Description
%    Computes the SNR
%  Note
%    computes snr for signal s + n , n is noise and s is clean signal

ratio = 10 * log (var(s,1)/var(n,1)) / log(10.0);
