marytts.cart
Class DecisionNode.BinaryFloatDecisionNode

java.lang.Object
  extended by marytts.cart.Node
      extended by marytts.cart.DecisionNode
          extended by marytts.cart.DecisionNode.BinaryFloatDecisionNode
Enclosing class:
DecisionNode

public static class DecisionNode.BinaryFloatDecisionNode
extends DecisionNode

A binary decision Node that compares two float values.


Nested Class Summary
 
Nested classes/interfaces inherited from class marytts.cart.DecisionNode
DecisionNode.BinaryByteDecisionNode, DecisionNode.BinaryFloatDecisionNode, DecisionNode.BinaryShortDecisionNode, DecisionNode.ByteDecisionNode, DecisionNode.ShortDecisionNode, DecisionNode.Type
 
Field Summary
 
Fields inherited from class marytts.cart.DecisionNode
daughters, feature, featureDefinition, featureIndex, lastDaughter, nData, TRACE, uniqueDecisionNodeId
 
Fields inherited from class marytts.cart.Node
isRoot, mother, nodeIndex
 
Constructor Summary
DecisionNode.BinaryFloatDecisionNode(int featureIndex, float value, FeatureDefinition featureDefinition)
          Create a new binary String DecisionNode.
DecisionNode.BinaryFloatDecisionNode(java.lang.String feature, float value, FeatureDefinition featureDefinition)
           
 
Method Summary
 float getCriterionValueAsFloat()
           
 java.lang.String getCriterionValueAsString()
           
 DecisionNode.Type getDecisionNodeType()
          Get the decision node type
 java.lang.String getDecisionPath(int daughterIndex)
          Get the path leading to the daughter with the given index.
 Node getNextNode(FeatureVector featureVector)
          Select a daughter node according to the value in the given target
 java.lang.String getNodeDefinition()
          Gets the String that defines the decision done in the node
 
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 marytts.cart.Node
getDecisionPath, getMother, getNodeIndex, getRootNode, isDirectedGraphNode, isLeafNode, isRoot, setIsRoot, setMother, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Item
value - the value to compare to

DecisionNode.BinaryFloatDecisionNode

public DecisionNode.BinaryFloatDecisionNode(java.lang.String feature,
                                            float value,
                                            FeatureDefinition featureDefinition)
Method Detail

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: