Lines Matching +refs:finite +refs:sum
141 "euclidean" EuclideanDistance - ``sqrt(sum((x - y)^2))``
142 "manhattan" ManhattanDistance - ``sum(|x - y|)``
143 "chebyshev" ChebyshevDistance - ``sum(max(|x - y|))``
144 "minkowski" MinkowskiDistance p ``sum(|x - y|^p)^(1/p)``
145 "wminkowski" WMinkowskiDistance p, w ``sum(w * |x - y|^p)^(1/p)``
146 "seuclidean" SEuclideanDistance V ``sqrt(sum((x - y)^2 / V))``
170 "canberra" CanberraDistance ``sum(|x - y| / (|x| + |y|))``
171 "braycurtis" BrayCurtisDistance ``sum(|x - y|) / (sum(|x|) + sum(|y|))``
414 # d = sqrt(sum(x_i^2 - y_i^2))
447 # d = sqrt(sum((x_i - y_i2)^2 / v_i))
491 # d = sum(abs(x_i - y_i))
533 # d = sum(x_i^p - y_i^p) ^ (1/p)
540 Minkowski Distance requires p >= 1 and finite. For p = infinity,
549 raise ValueError("MinkowskiDistance requires finite p. "
580 # d = sum(w_i * (x_i^p - y_i^p)) ^ (1/p)
587 Weighted Minkowski Distance requires p >= 1 and finite.
601 raise ValueError("WMinkowskiDistance requires finite p. "
731 # D(x, y) = sum[ abs(x_i - y_i) / (abs(x_i) + abs(y_i)) ]
754 # D(x, y) = sum[abs(x_i - y_i)] / sum[abs(x_i) + abs(y_i)]