public static enum Classification.Type extends Enum<Classification.Type> implements Comparator<Double>
| Enum Constant and Description |
|---|
CONFIDENCE |
DISTANCE |
PROBABILITY |
SIMILARITY |
VOTE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Double left,
Double right)
Calculates the order between arguments.
|
protected String |
entryKey() |
double |
getDefault()
Gets the least optimal value in the range of valid values.
|
com.google.common.collect.Ordering<Double> |
getOrdering() |
com.google.common.collect.Range<Double> |
getRange() |
boolean |
isValid(Double value) |
static Classification.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Classification.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfequalspublic static final Classification.Type PROBABILITY
public static final Classification.Type CONFIDENCE
public static final Classification.Type DISTANCE
public static final Classification.Type SIMILARITY
public static final Classification.Type VOTE
public static Classification.Type[] values()
for (Classification.Type c : Classification.Type.values()) System.out.println(c);
public static Classification.Type 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 int compare(Double left, Double right)
compare in interface Comparator<Double>left - A valueright - The reference valuepublic double getDefault()
public boolean isValid(Double value)
protected String entryKey()
public com.google.common.collect.Ordering<Double> getOrdering()
public com.google.common.collect.Range<Double> getRange()
Copyright © 2015. All Rights Reserved.