ts_sample function

Time Series Sample