function [y] = normalize(y)
maxA = max(abs(y));
if (maxA > 1)
    y = y / maxA;
end;
