smooth_dyns function

Smooth data across the dynamic dimension with a Gaussian kernel.