powered by
Computes the mindist value for two strings
min_dist(str1, str2, alphabet_size, compression_ratio = 1)
Returns the distance between strings
the first string
the second string
the used alphabet size
the distance compression ratio
Lonardi, S., Lin, J., Keogh, E., Patel, P., Finding motifs in time series. In Proc. of the 2nd Workshop on Temporal Data Mining (pp. 53-68).
str1 <- c('a', 'b', 'c') str2 <- c('c', 'b', 'a') min_dist(str1, str2, 3)
Run the code above in your browser using DataLab