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 |
data
uniqueLeafId
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, isEmpty
getNumberOfNodes, getUniqueLeafId, isLeafNode, setUniqueLeafId
getDecisionPath, getMother, getNodeIndex, getRootNode, isDecisionNode, isDirectedGraphNode, isRoot, setIsRoot, setMother, toString
public LeafNode.IntAndFloatArrayLeafNode(int[] data, float[] floats)
public float[] getFloatData()
public int mostProbableInt()
public void eraseData(int target)
target
- the given datapublic LeafNode.LeafType getLeafNodeType()
LeafNode
getLeafNodeType
in class LeafNode.IntArrayLeafNode
public String toString()
toString
in class LeafNode.IntArrayLeafNode
Copyright © 2000–2016 DFKI GmbH. All rights reserved.