Class CategoricalFeatureDomain
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.FeatureDomain
-
- ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.CategoricalFeatureDomain
-
- All Implemented Interfaces:
java.io.Serializable
public class CategoricalFeatureDomain extends FeatureDomain
Description of a categorical feature domain. Needed for fANOVA application in theExtendedRandomTree.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CategoricalFeatureDomain(double[] values)CategoricalFeatureDomain(CategoricalFeatureDomain 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)doublegetRangeSize()Computes the size of the domain.double[]getValues()inthashCode()voidsetValues(double[] values)java.lang.StringtoString()-
Methods inherited from class ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.FeatureDomain
getName, setName
-
-
-
-
Constructor Detail
-
CategoricalFeatureDomain
public CategoricalFeatureDomain(double[] values)
-
CategoricalFeatureDomain
public CategoricalFeatureDomain(CategoricalFeatureDomain domain)
-
-
Method Detail
-
getValues
public double[] getValues()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
setValues
public void setValues(double[] values)
-
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
-
contains
public boolean contains(java.lang.Object item)
Description copied from class:FeatureDomainChecks if the domain contains an item.- Specified by:
containsin classFeatureDomain- Returns:
-
compactString
public java.lang.String compactString()
- Specified by:
compactStringin classFeatureDomain
-
-