marytts.cart
Class LeafNode.IntAndFloatArrayLeafNode
java.lang.Object
marytts.cart.Node
marytts.cart.LeafNode
marytts.cart.LeafNode.IntArrayLeafNode
marytts.cart.LeafNode.IntAndFloatArrayLeafNode
- Direct Known Subclasses:
- LeafNode.StringAndFloatLeafNode
- Enclosing class:
- LeafNode
public static class LeafNode.IntAndFloatArrayLeafNode
- extends LeafNode.IntArrayLeafNode
|
Field Summary |
protected float[] |
floats
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
floats
protected float[] floats
LeafNode.IntAndFloatArrayLeafNode
public LeafNode.IntAndFloatArrayLeafNode(int[] data,
float[] floats)
getFloatData
public float[] getFloatData()
mostProbableInt
public int mostProbableInt()
- For the int-float pairs in this leaf, return the int value for which
the associated float value is the highest one. If the float values
are probabilities, this method returns the most probable int.
- Returns:
eraseData
public void eraseData(int target)
- Delete a candidate of the leaf by its given data/index
- Parameters:
target - the given data
getLeafNodeType
public LeafNode.LeafType getLeafNodeType()
- Description copied from class:
LeafNode
- The type of this leaf node.
- Overrides:
getLeafNodeType in class LeafNode.IntArrayLeafNode
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString in class LeafNode.IntArrayLeafNode