Class FeatureDomain
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.featurespace.FeatureDomain
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CategoricalFeatureDomain,NumericFeatureDomain
public abstract class FeatureDomain extends java.lang.Object implements java.io.SerializableAbstract description of a feature domain. Needed for fANOVA application in theExtendedRandomTree.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FeatureDomain()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringcompactString()abstract booleancontains(java.lang.Object item)Checks if the domain contains an item.abstract booleancontainsInstance(double value)Checks whether a given weka instance is contained in the feature domainjava.lang.StringgetName()Getter for name attribute.abstract doublegetRangeSize()Computes the size of the domain.voidsetName(java.lang.String name)Setter for name attribute.
-
-
-
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()
-
-