Any cluster algo can cluster time series datasets based on variation ratio(or quantity)? I learn machine learning from sciki and read its documents.

Clustering cluster groups based on the euclidean distance and filter them by different ways ex: guassian distribution, or mean-shift...etc.

But none of clustering algo cluster samples based on the variation ratio

EX: below every items has there sold numbers of everyday.

Item,D1,D2
A,1,5
B,10,50
C,4,70

The variation ratio below:
A:500%
B:500%
C:1750%


So A and B are the same group, C isn't.

Any cluster algo can cluster time series datasets based on variation ratio(or quantity)?
Extract features such as variation ratio
Cluster the extracted features instead of the raw data