Class NumericFeatureDomain

  • All Implemented Interfaces:
    java.io.Serializable

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

      • NumericFeatureDomain

        public NumericFeatureDomain​(boolean isInteger,
                                    double min,
                                    double max)
    • Method Detail

      • isInteger

        public boolean isInteger()
      • getMin

        public double getMin()
      • getMax

        public double getMax()
      • setMin

        public void setMin​(double min)
      • setMax

        public void setMax​(double max)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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:
      • 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
      • 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
      • 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