public enum SimilarityFunction extends Enum<SimilarityFunction>
Enum Constant and Description |
---|
COSINE |
DOT_PRODUCT |
EUCLIDEAN |
MAXIMUM_INNER_PRODUCT |
Modifier and Type | Method and Description |
---|---|
static SimilarityFunction |
fromOrdinal(int ord)
Efficiently gets SimilarityFunction from its ordinal.
|
static SimilarityFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimilarityFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimilarityFunction COSINE
public static final SimilarityFunction DOT_PRODUCT
public static final SimilarityFunction EUCLIDEAN
public static final SimilarityFunction MAXIMUM_INNER_PRODUCT
public static SimilarityFunction[] values()
for (SimilarityFunction c : SimilarityFunction.values()) System.out.println(c);
public static SimilarityFunction 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 nullpublic static SimilarityFunction fromOrdinal(int ord)
ord
- Ordinal value.
GridGain In-Memory Computing Platform : ver. 8.9.23 Release Date : July 30 2025