Class Classifier

  • Direct Known Subclasses:
    ExplicitClassifier, RangedClassifier

    public abstract class Classifier
    extends Object
    The data structure returned by classification functions. We can take this object, tweak it, and then pass it to a ClassifyFunction.
    Cory Horner, Refractions Research
    • Constructor Detail

      • Classifier

        public Classifier()
    • Method Detail

      • getTitles

        public String[] getTitles()
      • setTitles

        public void setTitles​(String... titles)
      • setTitle

        public void setTitle​(int slot,
                             String title)
      • getTitle

        public String getTitle​(int slot)
      • classify

        public int classify​(Expression expr,
                            Object feature)
        Returns the slot containing the passed expression's value.
      • classify

        public abstract int classify​(Object value)
        Returns the slot this value belongs in.
        index, starting from zero
      • getSize

        public abstract int getSize()
        the number of bins
      • getPercentages

        public double[] getPercentages()
        percentages for each class
      • setPercentages

        public void setPercentages​(double[] percentages)
        percentages - a double array with percentages for each class