public static enum Similarity.SimType extends Enum<Similarity.SimType>
Method
Enum Constant and Description |
---|
AVERAGE_COMMON_FEATURE_RANK |
COSINE
|
EUCLIDEAN |
JACCARD_INDEX
|
KENDALLS_TAU
|
KL_DIVERGENCE |
LIN |
PEARSON_CORRELATION
|
SPEARMAN_RANK_CORRELATION |
TANIMOTO_COEFFICIENT
|
Modifier and Type | Method and Description |
---|---|
static Similarity.SimType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Similarity.SimType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Similarity.SimType COSINE
public static final Similarity.SimType PEARSON_CORRELATION
public static final Similarity.SimType EUCLIDEAN
public static final Similarity.SimType SPEARMAN_RANK_CORRELATION
public static final Similarity.SimType JACCARD_INDEX
public static final Similarity.SimType LIN
public static final Similarity.SimType KL_DIVERGENCE
public static final Similarity.SimType AVERAGE_COMMON_FEATURE_RANK
public static final Similarity.SimType KENDALLS_TAU
public static final Similarity.SimType TANIMOTO_COEFFICIENT
public static Similarity.SimType[] values()
for (Similarity.SimType c : Similarity.SimType.values()) System.out.println(c);
public static Similarity.SimType 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 © 2012. All Rights Reserved.