Oops, didn't proofread that my "less than" and "greater" than symbols got interpreted as html. Here goes again on the last part:
or generally, for -10 <= j <= +10
smoothed(j) = (0.50+0.05*j)*raw(j) + (0.50-0.05*j)*raw(n-j)
smoothed(n-j) = (0.50+0.05*j)*raw(n-j) + (0.50-0.05*j)*raw(j)
