obtainSmoothTrend function

Obtain Smooth Trend.