LeafNode.FeatureVectorLeafNode, LeafNode.FloatLeafNode, LeafNode.IntAndFloatArrayLeafNode, LeafNode.IntArrayLeafNode, LeafNode.LeafType, LeafNode.PdfLeafNode, LeafNode.StringAndFloatLeafNodeuniqueLeafId| Constructor and Description |
|---|
LeafNode.FeatureVectorLeafNode()
Build a new, empty leaf node to be filled with vectors later
|
LeafNode.FeatureVectorLeafNode(FeatureVector[] featureVectors)
Build a new leaf node containing the given feature vectors
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureVector(FeatureVector fv) |
protected void |
fillData(Object target,
int pos,
int len)
Write this node's data into the target object at pos, making sure that exactly len data are written.
|
Object |
getAllData()
Get all data in this leaf
|
FeatureVector[] |
getFeatureVectors()
Get the feature vectors of this node
|
LeafNode.LeafType |
getLeafNodeType()
The type of this leaf node.
|
int |
getNumberOfData()
Count all the data available at and below this node.
|
boolean |
isEmpty()
Indicate whether the leaf node has no meaningful data.
|
void |
setFeatureVectors(FeatureVector[] fv) |
String |
toString() |
getNumberOfNodes, getUniqueLeafId, isLeafNode, setUniqueLeafIdgetDecisionPath, getMother, getNodeIndex, getRootNode, isDecisionNode, isDirectedGraphNode, isRoot, setIsRoot, setMother, toStringpublic LeafNode.FeatureVectorLeafNode(FeatureVector[] featureVectors)
featureVectors - the feature vectorspublic LeafNode.FeatureVectorLeafNode()
public void addFeatureVector(FeatureVector fv)
public FeatureVector[] getFeatureVectors()
public void setFeatureVectors(FeatureVector[] fv)
public Object getAllData()
getAllData in class LeafNodeprotected void fillData(Object target, int pos, int len)
LeafNodepublic int getNumberOfData()
LeafNodegetNumberOfData in class LeafNodepublic boolean isEmpty()
LeafNodepublic LeafNode.LeafType getLeafNodeType()
LeafNodegetLeafNodeType in class LeafNodeCopyright © 2000–2016 DFKI GmbH. All rights reserved.