Package elki.distance.set
Class AbstractSetDistance<O>
- java.lang.Object
-
- elki.distance.set.AbstractSetDistance<O>
-
- Type Parameters:
O
- Vector type
- All Implemented Interfaces:
Distance<O>
,PrimitiveDistance<O>
- Direct Known Subclasses:
HammingDistance
,JaccardSimilarityDistance
public abstract class AbstractSetDistance<O> extends java.lang.Object implements PrimitiveDistance<O>
Abstract base class for set distance functions.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Double
DOUBLE_NULL
Constants for checking null.static java.lang.Integer
INTEGER_NULL
Constants for checking null.static java.lang.String
STRING_NULL
Empty string.
-
Constructor Summary
Constructors Constructor Description AbstractSetDistance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
isNull(java.lang.Object val)
Test a value for null.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.distance.Distance
isMetric, isSquared, isSymmetric
-
Methods inherited from interface elki.distance.PrimitiveDistance
distance, getInputTypeRestriction, instantiate
-
-
-
-
Field Detail
-
INTEGER_NULL
public static final java.lang.Integer INTEGER_NULL
Constants for checking null.
-
DOUBLE_NULL
public static final java.lang.Double DOUBLE_NULL
Constants for checking null.
-
STRING_NULL
public static final java.lang.String STRING_NULL
Empty string.- See Also:
- Constant Field Values
-
-
Method Detail
-
isNull
protected static boolean isNull(java.lang.Object val)
Test a value for null. TODO: delegate toFeatureVector
instead?- Parameters:
val
- Value- Returns:
- true when null
-
-