Package org.jpmml.evaluator
Enum Classification.Type
- java.lang.Object
-
- java.lang.Enum<Classification.Type>
-
- org.jpmml.evaluator.Classification.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Classification.Type>
- Enclosing class:
- Classification<K,V extends java.lang.Number>
public static enum Classification.Type extends java.lang.Enum<Classification.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIDENCEDISTANCEPROBABILITYSIMILARITYVOTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends java.lang.Number>
intcompareValues(Value<V> left, Value<V> right)java.lang.StringentryKey()java.lang.DoublegetDefaultValue()Gets the least optimal value in the range of valid values.booleangetOrdering()com.google.common.collect.Range<java.lang.Double>getRange()<V extends java.lang.Number>
java.lang.DoublegetValue(Value<V> value)<V extends java.lang.Number>
booleanisValidValue(Value<V> value)static Classification.TypevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
PROBABILITY
public static final Classification.Type PROBABILITY
-
CONFIDENCE
public static final Classification.Type CONFIDENCE
-
DISTANCE
public static final Classification.Type DISTANCE
-
SIMILARITY
public static final Classification.Type SIMILARITY
-
VOTE
public static final Classification.Type VOTE
-
-
Method Detail
-
values
public static Classification.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Classification.Type c : Classification.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Classification.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public <V extends java.lang.Number> java.lang.Double getValue(Value<V> value)
-
isValidValue
public <V extends java.lang.Number> boolean isValidValue(Value<V> value)
-
getDefaultValue
public java.lang.Double getDefaultValue()
Gets the least optimal value in the range of valid values.
-
entryKey
public java.lang.String entryKey()
-
getOrdering
public boolean getOrdering()
-
getRange
public com.google.common.collect.Range<java.lang.Double> getRange()
-
-