Smoothing function

Smoothening of the time series