function score = evalFunc(sig, fs, amp, freq, phase)
% evalFunc - score quality of estimated parameters
%
% Usage: 
%   score = evalFunc(sig, fs, amp, freq, phase)

tt = (0:length(sig)-1)/fs;
xx = amp*cos(2*pi*freq*tt+phase);

score = var(sig-xx)/var(sig);
