convolve_and_scale function

Convolve and scale a time series