Distance metrics#
Wildboar support both subsequence distance using distance.pairwise_subsequence_distance()
and traditional distances using distance.pairwise_distance(). These and related functions
support different metrics, as specified by the metric argument and metric parameters
using the metric_params argument.
Metric name |
|
|
Comments |
|---|---|---|---|
Euclidean |
|
|
|
Normalized Euclidean |
|
|
Euclidean distance, where length has been scaled to have unit norm. Undefined cases result in 0. |
Scaled Euclidean |
|
|
Scales each subsequence to have zero mean and unit variance. |
Manhattan |
|
|
|
Minkowski |
|
|
|
Chebyshev |
|
|
|
Cosine |
|
|
|
Angular |
|
|
|
Dynamic time warping |
|
|
Window |
Scaled DTW |
|
|
Window |
Metric name |
|
|
Comments |
|---|---|---|---|
Euclidean |
|
|
|
Normalized Euclidean |
|
|
Euclidean distance, where length has been scaled to have unit norm. Undefined cases result in 0. |
Manhattan |
|
|
|
Minkowski |
|
|
|
Chebyshev |
|
|
|
Cosine |
|
|
|
Angular |
|
|
|
Longest common subsequence [1] |
|
|
Window |
Edit distance with real penalty [2] |
|
|
Window |
Edit distance for real sequences [3] |
|
|
Window |
Move-split-merge [4] |
|
|
Window |
Time Warp Edit distance [5] |
|
|
Window |
Dynamic time warping |
|
|
Window |
Weighted DTW |
|
|
Window |
Derivative DTW |
|
|
Window |
Weighted Derivative DTW |
|
|
Window |
References#
- [1] Hirschberg, D. (1977).
Algorithms for the longest common subsequence problem. Journal of the ACM (JACM).
- [2] Chen, L., & Ng, R. (2004).
On the Marriage of Lp-Norms and Edit Distance (30). Proceedings of the Thirtieth International Conference on Very Large Data Base.
- [3] Chen, L., Özsu, M. T., & Oria, V. (2005).
Robust and fast similarity search for moving object trajectories. Proceedings from Proceedings of the International Conference on Management of Data
- [4] Stefan, A., Athitsos, V., & Das, G. (2013).
The Move-Split-Merge Metric for Time Series. IEEE Transactions on Knowledge and Data Engineering, 25(6), 1425-1438.
- [5] Marteau, P.-F. (2008).
Time warp edit distance with stiffness adjustment for time series matching. IEEE transactions on pattern analysis and machine intelligence, 31(2), 306-318.