Real Time Clustering of Time Series Using Triangular Potentials