Construct a new UserDistance. Any two instances of an UserDistance are equal if their string descriptors are equal.
Source:R/metrics.R
user_distance.Rd
Required features: honest-but-curious
Details
Why honest-but-curious?:
Your definition of d
must satisfy the requirements of a pseudo-metric:
for any \(x\), \(d(x, x) = 0\)
for any \(x, y\), \(d(x, y) \ge 0\) (non-negativity)
for any \(x, y\), \(d(x, y) = d(y, x)\) (symmetry)
for any \(x, y, z\), \(d(x, z) \le d(x, y) + d(y, z)\) (triangle inequality)