InputType - The type of the input the categorizer can use.CategoryType - The type of category output by the categorizer.DiscriminantType - The type of discriminant that can be used to sort the output.public abstract class AbstractDiscriminantCategorizer<InputType,CategoryType,DiscriminantType extends java.lang.Comparable<? super DiscriminantType>> extends AbstractCategorizer<InputType,CategoryType> implements DiscriminantCategorizer<InputType,CategoryType,DiscriminantType>
DiscriminantCategorizer interface.
It implements the evaluate method to call the evaluateWithDiscriminant
method.categories| Constructor and Description |
|---|
AbstractDiscriminantCategorizer()
Creates a new
AbstractDiscriminantCategorizer with an empty
set of categories. |
AbstractDiscriminantCategorizer(java.util.Set<CategoryType> categories)
Creates a new
AbstractCategorizer with the given category set. |
| Modifier and Type | Method and Description |
|---|---|
CategoryType |
evaluate(InputType input)
Evaluates the function on the given input and returns the output.
|
clone, getCategories, setCategoriesequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateWithDiscriminantgetCategoriesclonepublic AbstractDiscriminantCategorizer()
AbstractDiscriminantCategorizer with an empty
set of categories.public AbstractDiscriminantCategorizer(java.util.Set<CategoryType> categories)
AbstractCategorizer with the given category set.categories - The categories.public CategoryType evaluate(InputType input)
Evaluatorevaluate in interface Evaluator<InputType,CategoryType>input - The input to evaluate.