Class FeatureDomain

    • Constructor Summary

      Constructors 
      Constructor Description
      FeatureDomain()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String compactString()  
      abstract boolean contains​(java.lang.Object item)
      Checks if the domain contains an item.
      abstract boolean containsInstance​(double value)
      Checks whether a given weka instance is contained in the feature domain
      java.lang.String getName()
      Getter for name attribute.
      abstract double getRangeSize()
      Computes the size of the domain.
      void setName​(java.lang.String name)
      Setter for name attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeatureDomain

        public FeatureDomain()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Setter for name attribute.
        Parameters:
        name -
      • getName

        public java.lang.String getName()
        Getter for name attribute.
        Returns:
      • contains

        public abstract boolean contains​(java.lang.Object item)
        Checks if the domain contains an item.
        Parameters:
        Item - to be checked
        Returns:
      • getRangeSize

        public abstract double getRangeSize()
        Computes the size of the domain. For categorical features it returns the number of catogeries, for numeric features upper interval bound - lower interval bound.
        Returns:
        Size of feature domain
      • containsInstance

        public abstract boolean containsInstance​(double value)
        Checks whether a given weka instance is contained in the feature domain
        Parameters:
        instance -
        Returns:
        true iff contained in the domain
      • compactString

        public abstract java.lang.String compactString()