Class ExplicitClassifier


  • public final class ExplicitClassifier
    extends Classifier
    Explicit classification for a set of values.
    Author:
    jody
    • Constructor Detail

      • ExplicitClassifier

        public ExplicitClassifier​(Set... values)
    • Method Detail

      • getSize

        public int getSize()
        Specified by:
        getSize in class Classifier
        Returns:
        the number of bins
      • getValues

        public Set getValues​(int index)
        Returns all the unique values for a particular slot.
        Returns:
        all applicable values for a slot
      • classify

        public int classify​(Object value)
        Description copied from class: Classifier
        Returns the slot this value belongs in.
        Specified by:
        classify in class Classifier
        Returns:
        index, starting from zero