Package com.chemaxon.descriptors.metrics
Enum Class FloatVectorMetrics
- All Implemented Interfaces:
FloatVectorComparator
,MetricMetadata
,Serializable
,Comparable<FloatVectorMetrics>
,java.lang.constant.Constable
@Beta
@PublicApi
public enum FloatVectorMetrics
extends Enum<FloatVectorMetrics>
implements FloatVectorComparator, Serializable
Simple metrics for float vectors.
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 metrics-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.chemaxon.descriptors.metrics.FloatVectorComparator
FloatVectorComparator.Util
-
Enum Constant Summary
Enum ConstantDescriptionEuclidean distance.Square of Euclidean distance.Manhattan distance.Uniform / maximum norm based distance.Tanimoto coefficient (adapted to histograms). -
Method Summary
Modifier and TypeMethodDescriptionstatic FloatVectorMetrics
Returns the enum constant of this class with the specified name.static FloatVectorMetrics[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.chemaxon.descriptors.metrics.FloatVectorComparator
calculateFloatVectorDissimilarity, calculateFloatVectorSimilarity, getLowerBoundForFloatVectors, getUpperBoundForFloatVectors
Methods inherited from interface com.chemaxon.descriptors.metrics.MetricMetadata
isDissimilarityZeroIFFEquals, isMetricSpace, isNonNegative, isSymmetric, isTriangeInequalityHolds
-
Enum Constant Details
-
EUCLIDEAN
Euclidean distance.Square root of the sums of the difference squares.
-
EUCLIDEAN_SQR
Square of Euclidean distance.Sums of the difference squares.
-
MANHATTAN
Manhattan distance.Sums of the abs of the differences.
-
MAXIMUM
Uniform / maximum norm based distance.maximum of the abs of the differences.
-
TANIMOTO_HISTOGRAM
Tanimoto coefficient (adapted to histograms).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-