NumericComparator-class {comparator} | R Documentation |
Virtual Numeric Comparator Class
Description
Represents a comparator for comparing pairs of numeric vectors.
Slots
.Data
a function that calls the elementwise method for this class, with arguments
x
,y
and...
.symmetric
a logical of length 1. If TRUE, the comparator is symmetric in its arguments—i.e.
comparator(x, y)
is identical tocomparator(y, x)
.distance
a logical of length 1. If
TRUE
, the comparator produces distances and satisfiescomparator(x, x) = 0
. The comparator may not satisfy all of the properties of a distance metric.similarity
a logical of length 1. If
TRUE
, the comparator produces similarity scores.tri_inequal
a logical of length 1. If
TRUE
, the comparator satisfies the triangle inequality. This is only possible (but not guaranteed) ifdistance = TRUE
andsymmetric = TRUE
.
[Package comparator version 0.1.2 Index]