public static enum QGramComparator.Formula extends java.lang.Enum<QGramComparator.Formula>
Modifier and Type | Method and Description |
---|---|
double |
compute(int common,
java.util.Set<java.lang.String> q1,
java.util.Set<java.lang.String> q2) |
static QGramComparator.Formula |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QGramComparator.Formula[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QGramComparator.Formula OVERLAP
public static final QGramComparator.Formula JACCARD
public static final QGramComparator.Formula DICE
public static QGramComparator.Formula[] values()
for (QGramComparator.Formula c : QGramComparator.Formula.values()) System.out.println(c);
public static QGramComparator.Formula valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic double compute(int common, java.util.Set<java.lang.String> q1, java.util.Set<java.lang.String> q2)