Kernel density estimation for time series data