Package elki.data

Class ClassLabel.Factory<L extends ClassLabel>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.HashMap<java.lang.String,​L> existing
      Set for reusing the same objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory()  
    • Field Detail

      • existing

        protected java.util.HashMap<java.lang.String,​L extends ClassLabel> existing
        Set for reusing the same objects.
    • Constructor Detail

      • Factory

        public Factory()
    • Method Detail

      • makeFromString

        public abstract L makeFromString​(java.lang.String lbl)
        Convert a string into a class label.
        Parameters:
        lbl - String to convert
        Returns:
        Class label instance.
      • getTypeInformation

        public abstract SimpleTypeInformation<? super L> getTypeInformation()
        Get type information for the labels.
        Returns:
        Type information