Generalized Framework for Similarity Measure of Time Series. (3rd November 2014)