InputType
- The type of the input the categorizer can use.public abstract class AbstractDiscriminantBinaryCategorizer<InputType> extends AbstractBinaryCategorizer<InputType> implements DiscriminantBinaryCategorizer<InputType>
DiscriminantBinaryCategorizer
interface. Provides implementations of the evaluate and
evaluateWithDiscriminant that call evaluateAsDouble and uses the sign as
the category and the magnitude as the discriminant.BINARY_CATEGORIES
Constructor and Description |
---|
AbstractDiscriminantBinaryCategorizer()
Creates a new
AbstractDiscriminantBinaryCategorizer . |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
evaluate(InputType input)
Evaluates the function on the given input and returns the output.
|
ValueDiscriminantPair<java.lang.Boolean,java.lang.Double> |
evaluateWithDiscriminant(InputType input)
Evaluate the categorizer on the given input to produce the expected
category plus a discriminant for later producing an ordering of how well
items fit into that category.
|
getCategories
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluateAsDouble
getCategories
clone
public AbstractDiscriminantBinaryCategorizer()
AbstractDiscriminantBinaryCategorizer
.public java.lang.Boolean evaluate(InputType input)
Evaluator
public ValueDiscriminantPair<java.lang.Boolean,java.lang.Double> evaluateWithDiscriminant(InputType input)
DiscriminantCategorizer
evaluateWithDiscriminant
in interface DiscriminantCategorizer<InputType,java.lang.Boolean,java.lang.Double>
input
- The input value to categorize with a discriminate