Class BooleanCategory

  • All Implemented Interfaces:
    Category

    public class BooleanCategory
    extends java.lang.Object
    implements Category
    A category for one-class classifiers.
    Author:
    Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanCategory​(boolean cat)
      Creates a new category with the given value.
    • Method Summary

      Modifier and Type Method Description
      double asDouble()
      Returns a double representation of this category.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BooleanCategory

        public BooleanCategory​(boolean cat)
        Creates a new category with the given value.
        Parameters:
        cat - some boolean
    • Method Detail

      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Category
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface Category
        Overrides:
        equals in class java.lang.Object
      • asDouble

        public double asDouble()
        Description copied from interface: Category
        Returns a double representation of this category.
        Specified by:
        asDouble in interface Category
        Returns:
        a double representation of this category.