DistType Fields |
The DistType type exposes the following members.
| Name | Description | |
|---|---|---|
| C |
distance = max(|x1-x2|,|y1-y2|)
| |
| Fair |
distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998
| |
| Huber |
distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345
| |
| L1 |
distance = |x1-x2| + |y1-y2|
| |
| L12 |
L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))
| |
| L2 |
Simple euclidean distance
| |
| User |
User defined distance
| |
| value__ | ||
| Welsch |
distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846
|