gov.sandia.cognition.learning.function.categorization
Class AbstractDiscriminantCategorizer<InputType,CategoryType,DiscriminantType extends Comparable<? super DiscriminantType>>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.function.categorization.AbstractCategorizer<InputType,CategoryType>
          extended by gov.sandia.cognition.learning.function.categorization.AbstractDiscriminantCategorizer<InputType,CategoryType,DiscriminantType>
Type Parameters:
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.
All Implemented Interfaces:
Evaluator<InputType,CategoryType>, Categorizer<InputType,CategoryType>, DiscriminantCategorizer<InputType,CategoryType,DiscriminantType>, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
BinaryVersusCategorizer, VotingCategorizerEnsemble, WinnerTakeAllCategorizer

public abstract class AbstractDiscriminantCategorizer<InputType,CategoryType,DiscriminantType extends Comparable<? super DiscriminantType>>
extends AbstractCategorizer<InputType,CategoryType>
implements DiscriminantCategorizer<InputType,CategoryType,DiscriminantType>

An abstract implementation of the DiscriminantCategorizer interface. It implements the evaluate method to call the evaluateWithDiscriminant method.

Since:
3.1
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.learning.function.categorization.AbstractCategorizer
categories
 
Constructor Summary
AbstractDiscriminantCategorizer()
          Creates a new AbstractDiscriminantCategorizer with an empty set of categories.
AbstractDiscriminantCategorizer(Set<CategoryType> categories)
          Creates a new AbstractCategorizer with the given category set.
 
Method Summary
 CategoryType evaluate(InputType input)
          Evaluates the function on the given input and returns the output.
 
Methods inherited from class gov.sandia.cognition.learning.function.categorization.AbstractCategorizer
clone, getCategories, setCategories
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.learning.function.categorization.DiscriminantCategorizer
evaluateWithDiscriminant
 
Methods inherited from interface gov.sandia.cognition.learning.function.categorization.Categorizer
getCategories
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

AbstractDiscriminantCategorizer

public AbstractDiscriminantCategorizer()
Creates a new AbstractDiscriminantCategorizer with an empty set of categories.


AbstractDiscriminantCategorizer

public AbstractDiscriminantCategorizer(Set<CategoryType> categories)
Creates a new AbstractCategorizer with the given category set.

Parameters:
categories - The categories.
Method Detail

evaluate

public CategoryType evaluate(InputType input)
Description copied from interface: Evaluator
Evaluates the function on the given input and returns the output.

Specified by:
evaluate in interface Evaluator<InputType,CategoryType>
Parameters:
input - The input to evaluate.
Returns:
The output produced by evaluating the input.