public static class LeafNode.IntAndFloatArrayLeafNode extends LeafNode.IntArrayLeafNode
LeafNode.FeatureVectorLeafNode, LeafNode.FloatLeafNode, LeafNode.IntAndFloatArrayLeafNode, LeafNode.IntArrayLeafNode, LeafNode.LeafType, LeafNode.PdfLeafNode, LeafNode.StringAndFloatLeafNode| Modifier and Type | Field and Description |
|---|---|
protected float[] |
floats |
datauniqueLeafId| Constructor and Description |
|---|
LeafNode.IntAndFloatArrayLeafNode(int[] data,
float[] floats) |
| Modifier and Type | Method and Description |
|---|---|
void |
eraseData(int target)
Delete a candidate of the leaf by its given data/index
|
float[] |
getFloatData() |
LeafNode.LeafType |
getLeafNodeType()
The type of this leaf node.
|
int |
mostProbableInt()
For the int-float pairs in this leaf, return the int value for which the associated float value is the highest one.
|
String |
toString() |
fillData, getAllData, getIntData, getNumberOfData, isEmptygetNumberOfNodes, getUniqueLeafId, isLeafNode, setUniqueLeafIdgetDecisionPath, getMother, getNodeIndex, getRootNode, isDecisionNode, isDirectedGraphNode, isRoot, setIsRoot, setMother, toStringpublic LeafNode.IntAndFloatArrayLeafNode(int[] data,
float[] floats)
public float[] getFloatData()
public int mostProbableInt()
public void eraseData(int target)
target - the given datapublic LeafNode.LeafType getLeafNodeType()
LeafNodegetLeafNodeType in class LeafNode.IntArrayLeafNodepublic String toString()
toString in class LeafNode.IntArrayLeafNodeCopyright © 2000–2016 DFKI GmbH. All rights reserved.