public enum DistanceMeasure extends Enum<DistanceMeasure>
Enum Constant and Description |
---|
COSINE_SIMILARITY
Cosine similarity is used to calculate the distance between two points.
|
EUCLIDEAN
Euclidean distance is used to calculate the distance between two points.
|
Modifier and Type | Method and Description |
---|---|
static DistanceMeasure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceMeasure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceMeasure EUCLIDEAN
public static final DistanceMeasure COSINE_SIMILARITY
public static DistanceMeasure[] values()
for (DistanceMeasure c : DistanceMeasure.values()) System.out.println(c);
public static DistanceMeasure 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 nullCopyright © 2016 Actian Corporation. All rights reserved.