function ans = MYLPF(vec)

%  Details here aren't too important.  This is just a simple digital LPF.

ans(1) = vec(1);
ans(2) = vec(2);
    for (i = 3:length(vec)-2)
        ans(i) = (vec(i-2)+vec(i+2) + 2*(vec(i-1)+vec(i+1)) + 4*vec(i))/10;
    end
ans(length(vec)-1) = vec(length(vec)-1);
ans(length(vec)-0) = vec(length(vec));