Class DoubleCategory

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

public class DoubleCategory extends Object implements Category
A category for multi-class classification using a double as identifier.
Author:
Matthias Thimm
  • Constructor Details

    • DoubleCategory

      public DoubleCategory(double 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object