Smooth data in two passes.
Apply lowpass filtering in-place.