public interface FeatureExtractor
Modifier and Type | Method and Description |
---|---|
weka.core.Instances |
createEmptyDataset()
Creates an empty data set containing the header appropriate to this extractor.
|
weka.core.Instance |
getAreaFeatures(Area area,
weka.core.Instances dataset)
Creates a classification data instance from the given area.
|
Area |
getTreeRoot()
Obtains the current tree root.
|
void |
setTree(Area rootNode)
Initializes the extractor to use the tree with the given root node.
|
void setTree(Area rootNode)
rootNode
- the new area tree root nodeArea getTreeRoot()
null
when the tree was not set before.weka.core.Instance getAreaFeatures(Area area, weka.core.Instances dataset)
area
- the area whose features should be computeddataset
- the data set the created instance should belong toweka.core.Instances createEmptyDataset()