trend function

Trend of time series