Class NumericFeatureDomain
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.FeatureDomain
-
- ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.NumericFeatureDomain
-
- All Implemented Interfaces:
java.io.Serializable
public class NumericFeatureDomain extends FeatureDomain
Description of a numeric feature domain. Needed for fANOVA application in theExtendedRandomTree.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NumericFeatureDomain(boolean isInteger, double min, double max)NumericFeatureDomain(NumericFeatureDomain domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcompactString()booleancontains(java.lang.Object item)Checks if the domain contains an item.booleancontainsInstance(double value)Checks whether a given weka instance is contained in the feature domainbooleanequals(java.lang.Object obj)doublegetMax()doublegetMin()doublegetRangeSize()Computes the size of the domain.inthashCode()booleanisInteger()voidsetMax(double max)voidsetMin(double min)java.lang.StringtoString()-
Methods inherited from class ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.FeatureDomain
getName, setName
-
-
-
-
Constructor Detail
-
NumericFeatureDomain
public NumericFeatureDomain(boolean isInteger, double min, double max)
-
NumericFeatureDomain
public NumericFeatureDomain(NumericFeatureDomain domain)
-
-
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:
toStringin classjava.lang.Object
-
contains
public boolean contains(java.lang.Object item)
Description copied from class:FeatureDomainChecks if the domain contains an item.- Specified by:
containsin classFeatureDomain- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getRangeSize
public double getRangeSize()
Description copied from class:FeatureDomainComputes 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:
getRangeSizein classFeatureDomain- Returns:
- Size of feature domain
-
containsInstance
public boolean containsInstance(double value)
Description copied from class:FeatureDomainChecks whether a given weka instance is contained in the feature domain- Specified by:
containsInstancein classFeatureDomain- Returns:
- true iff contained in the domain
-
compactString
public java.lang.String compactString()
- Specified by:
compactStringin classFeatureDomain
-
-