A weighted k-medoids algorithm for clustering time series' projections