Class BooleanCategory

java.lang.Object
org.tweetyproject.machinelearning.BooleanCategory
All Implemented Interfaces:
Category

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

    • BooleanCategory

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

    • hashCode

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

      public boolean equals(Object obj)
      Specified by:
      equals in interface Category
      Overrides:
      equals in class 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.