@Beta @PublicAPI public enum FloatVectorMetrics extends Enum<FloatVectorMetrics> implements FloatVectorComparator, Serializable
Please note that this enum is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
TODO: add dot product, normalized dot product, vector product length and normalized vector product length metricsFloatVectorComparator.Util
Enum Constant and Description |
---|
EUCLIDEAN
Euclidean distance.
|
EUCLIDEAN_SQR
Square of Euclidean distance.
|
MANHATTAN
Manhattan distance.
|
MAXIMUM
Uniform / maximum norm based distance.
|
TANIMOTO_HISTOGRAM
Tanimoto coefficient (adapted to histograms).
|
Modifier and Type | Method and Description |
---|---|
static FloatVectorMetrics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FloatVectorMetrics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
calculateFloatVectorDissimilarity, calculateFloatVectorSimilarity, getLowerBoundForFloatVectors, getUpperBoundForFloatVectors
isDissimilarityZeroIFFEquals, isMetricSpace, isNonNegative, isSymmetric, isTriangeInequalityHolds
public static final FloatVectorMetrics EUCLIDEAN
Square root of the sums of the difference squares.
public static final FloatVectorMetrics EUCLIDEAN_SQR
public static final FloatVectorMetrics MANHATTAN
public static final FloatVectorMetrics MAXIMUM
public static final FloatVectorMetrics TANIMOTO_HISTOGRAM
public static FloatVectorMetrics[] values()
for (FloatVectorMetrics c : FloatVectorMetrics.values()) System.out.println(c);
public static FloatVectorMetrics valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null