euclidean Animated explanation / 动图详解 | distance | yes | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sqrt{\sum_t \|x_t-y_t\|_2^2}$ | Equal-length pointwise Euclidean distance. |
squared_euclidean Animated explanation / 动图详解 | distance | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sum_t \|x_t-y_t\|_2^2$ | Squared Euclidean loss. |
rmse_distance Animated explanation / 动图详解 | distance | yes on a common fixed-dimensional domain | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sqrt{\frac{1}{nd}\sum_t \|x_t-y_t\|_2^2}$ | Root-mean-square error over aligned points: a positive constant times Euclidean distance when n and d are fixed. |
manhattan Animated explanation / 动图详解 | distance | yes | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sum_t \|x_t-y_t\|_1$ | L1 distance. |
mae_distance Animated explanation / 动图详解 | distance | yes on a common fixed-dimensional domain | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\frac{1}{nd}\sum_t \|x_t-y_t\|_1$ | Mean absolute error: a positive constant times L1 distance when n and d are fixed. |
minkowski Animated explanation / 动图详解 | distance | yes (p≥1) | O(n·d) | no | yes | exact | Low-priority addition | - | $d_p(x,y)=\left(\sum_t \|x_t-y_t\|_p^p\right)^{1/p}$ | Generalized Lp distance. |
chebyshev Animated explanation / 动图详解 | distance | yes | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\max_t \|x_t-y_t\|_{\infty}$ | Maximum deviation distance. |
canberra Animated explanation / 动图详解 | distance | yes | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sum_i \frac{|x_i-y_i|}{|x_i|+|y_i|}$ | Relative L1 distance sensitive near zero. |
bray_curtis Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\frac{\sum_i |x_i-y_i|}{\sum_i |x_i+y_i|}$ | Bray-Curtis dissimilarity. |
sorensen Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\frac{\sum_i |x_i-y_i|}{\sum_i (|x_i|+|y_i|)}$ | Sorensen dissimilarity. |
soergel Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\frac{\sum_i |x_i-y_i|}{\sum_i \max(|x_i|,|y_i|)}$ | Relative distance normalized by max magnitudes. |
kulczynski Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\frac{\sum_i |x_i-y_i|}{\sum_i \min(|x_i|,|y_i|)}$ | Kulczynski-style relative dissimilarity. |
clark Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sqrt{\sum_i\left(\frac{|x_i-y_i|}{|x_i|+|y_i|}\right)^2}$ | Clark distance. |
wave_hedges Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sum_i \frac{|x_i-y_i|}{\max(|x_i|,|y_i|)}$ | Wave-Hedges distance. |
lorentzian Animated explanation / 动图详解 | distance-like | not guaranteed | O(n·d) | no | yes | reference | Low-priority addition | - | $d(x,y)=\sum_i \log(1+|x_i-y_i|)$ | Log-compressed deviation. |
cosine_similarity Animated explanation / 动图详解 | similarity | no | O(n·d) | no | yes | exact | Low-priority addition | - | $s(x,y)=\frac{\langle x,y\rangle}{\|x\|\|y\|}$ | Directional similarity. |
cosine_distance Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=1-s_{\cos}(x,y)$ | Monotone transform of cosine similarity. |
angular_distance Animated explanation / 动图详解 | distance | yes on normalized vectors | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\arccos(s_{\cos}(x,y))/\pi$ | Angle-based distance. |
pearson_similarity Animated explanation / 动图详解 | similarity | no | O(n·d) | no | yes | exact | Conceptually covered | pearson_r | $r(x,y)=\frac{\sum_i(x_i-\bar x)(y_i-\bar y)}{\sqrt{\sum_i(x_i-\bar x)^2}\sqrt{\sum_i(y_i-\bar y)^2}}$ | Linear correlation. |
pearson_distance Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | exact | Conceptually covered | pearson_r | $d(x,y)=1-r(x,y)$ | Correlation distance. |
spearman_similarity Animated explanation / 动图详解 | similarity | no | O(n \log n) | no | yes | reference | Conceptually covered | spearman_rho | $s(x,y)=r(\mathrm{rank}(x),\mathrm{rank}(y))$ | Rank correlation similarity. |
spearman_distance Animated explanation / 动图详解 | distance-like | no | O(n \log n) | no | yes | reference | Conceptually covered | spearman_rho | $d(x,y)=1-\rho(x,y)$ | Distance-like rank dissimilarity. |
kendall_similarity Animated explanation / 动图详解 | similarity | no | O(n^2) | no | yes | reference | Conceptually covered | kendall_tau | $s(x,y)=\tau_b(x,y)$ | Kendall tau-b rank agreement. |
kendall_distance Animated explanation / 动图详解 | distance-like | no | O(n^2) | no | yes | reference | Conceptually covered | kendall_tau | $d(x,y)=1-\tau_b(x,y)$ | Distance-like form of Kendall agreement. |
jensen_shannon Animated explanation / 动图详解 | distance | yes on probability distributions | O(n) | no | yes | exact | Conceptually covered | spectral_similarity | $d(x,y)=\sqrt{\frac{1}{2}KL(x\|m)+\frac{1}{2}KL(y\|m)}$ | Square root of Jensen-Shannon divergence, defined on probability distributions over a common support. |
kl_divergence Animated explanation / 动图详解 | divergence | no | O(n) | no | yes | exact | Low-priority addition | - | $D_{KL}(x\|y)=\sum_i p_i\log\frac{p_i}{q_i}$ | Asymmetric divergence. |
jeffreys_divergence Animated explanation / 动图详解 | divergence | no | O(n) | no | yes | exact | Low-priority addition | - | $J(x,y)=KL(x\|y)+KL(y\|x)$ | Symmetrized KL divergence. |
bhattacharyya_distance Animated explanation / 动图详解 | distance-like | no | O(n) | no | yes | exact | Low-priority addition | - | $d(x,y)=-\log\sum_i \sqrt{p_i q_i}$ | Distribution overlap distance. |
hellinger_distance Animated explanation / 动图详解 | distance | yes | O(n) | no | yes | exact | Low-priority addition | - | $d(x,y)=\sqrt{\frac{1}{2}\sum_i(\sqrt{p_i}-\sqrt{q_i})^2}$ | Probability-distribution distance. |
chi_square_distance Animated explanation / 动图详解 | distance-like | no | O(n) | no | yes | exact | Low-priority addition | - | $d(x,y)=\frac{1}{2}\sum_i\frac{(x_i-y_i)^2}{x_i+y_i}$ | Chi-square distance for histograms. |
seuclidean_distance Animated explanation / 动图详解 | distance | yes | O(n) | no | yes | reference | Low-priority addition | - | $d(x,y)=\sqrt{\sum_i \frac{(x_i-y_i)^2}{v_i}}$ | Variance-standardized Euclidean distance. |
znorm_euclidean Animated explanation / 动图详解 | distance | yes in normalized space; pseudometric on original series | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\|\hat x-\hat y\|_2$ | Euclidean after per-channel z-normalization. Positive rescaling and offset can map distinct series to the same representation; constant channels need a declared convention. |
znorm_manhattan Animated explanation / 动图详解 | distance | yes in normalized space; pseudometric on original series | O(n·d) | no | yes | exact | Low-priority addition | - | $d(x,y)=\|\hat x-\hat y\|_1$ | L1 after per-channel z-normalization. Positive rescaling and offset can map distinct series to the same representation; constant channels need a declared convention. |
cid_distance Animated explanation / 动图详解 | distance-like | no | O(n·d) | no | yes | reference | Low-priority addition | - | $CID(x,y)=ED(x,y)\cdot \frac{\max(CE(x),CE(y))}{\min(CE(x),CE(y))}$ | Complexity-invariant distance. |