1D Gaussian filter to remove noise (with code)