Class 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 Detail

      • DoubleCategory

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

      • 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.