marytts.cart
Class DecisionNode.BinaryFloatDecisionNode
java.lang.Object
marytts.cart.Node
marytts.cart.DecisionNode
marytts.cart.DecisionNode.BinaryFloatDecisionNode
- Enclosing class:
- DecisionNode
public static class DecisionNode.BinaryFloatDecisionNode
- extends DecisionNode
A binary decision Node that compares two float values.
| Methods inherited from class marytts.cart.DecisionNode |
addDaughter, countData, fillData, getAllData, getDaughter, getFeatureDefinition, getFeatureIndex, getFeatureName, getNumberOfData, getNumberOfDaugthers, getNumberOfNodes, getUniqueDecisionNodeId, hasMoreDaughters, isDecisionNode, replaceDaughter, setUniqueDecisionNodeId, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DecisionNode.BinaryFloatDecisionNode
public DecisionNode.BinaryFloatDecisionNode(int featureIndex,
float value,
FeatureDefinition featureDefinition)
- Create a new binary String DecisionNode.
- Parameters:
feature - the string used to get a value from an Itemvalue - the value to compare to
DecisionNode.BinaryFloatDecisionNode
public DecisionNode.BinaryFloatDecisionNode(java.lang.String feature,
float value,
FeatureDefinition featureDefinition)
getCriterionValueAsFloat
public float getCriterionValueAsFloat()
getCriterionValueAsString
public java.lang.String getCriterionValueAsString()
getNextNode
public Node getNextNode(FeatureVector featureVector)
- Select a daughter node according to the value in the given target
- Specified by:
getNextNode in class DecisionNode
- Parameters:
target - the target
- Returns:
- a daughter
getDecisionPath
public java.lang.String getDecisionPath(int daughterIndex)
- Description copied from class:
DecisionNode
- Get the path leading to the daughter with the given index. This
will recursively go up to the root node.
- Specified by:
getDecisionPath in class DecisionNode
- Returns:
getNodeDefinition
public java.lang.String getNodeDefinition()
- Gets the String that defines the decision done in the node
- Specified by:
getNodeDefinition in class DecisionNode
- Returns:
- the node definition
getDecisionNodeType
public DecisionNode.Type getDecisionNodeType()
- Description copied from class:
DecisionNode
- Get the decision node type
- Specified by:
getDecisionNodeType in class DecisionNode
- Returns: