Class CategoricalFeatureDomain

  • All Implemented Interfaces:
    java.io.Serializable

    public class CategoricalFeatureDomain
    extends FeatureDomain
    Description of a categorical feature domain. Needed for fANOVA application in the ExtendedRandomTree.
    See Also:
    Serialized Form
    • Constructor Detail

      • CategoricalFeatureDomain

        public CategoricalFeatureDomain​(double[] values)
    • Method Detail

      • getValues

        public double[] getValues()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getRangeSize

        public double getRangeSize()
        Description copied from class: FeatureDomain
        Computes the size of the domain. For categorical features it returns the number of catogeries, for numeric features upper interval bound - lower interval bound.
        Specified by:
        getRangeSize in class FeatureDomain
        Returns:
        Size of feature domain
      • setValues

        public void setValues​(double[] values)
      • containsInstance

        public boolean containsInstance​(double value)
        Description copied from class: FeatureDomain
        Checks whether a given weka instance is contained in the feature domain
        Specified by:
        containsInstance in class FeatureDomain
        Returns:
        true iff contained in the domain
      • contains

        public boolean contains​(java.lang.Object item)
        Description copied from class: FeatureDomain
        Checks if the domain contains an item.
        Specified by:
        contains in class FeatureDomain
        Returns: