|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.cart.Node
marytts.cart.DecisionNode
marytts.cart.DecisionNode.BinaryByteDecisionNode
public static class DecisionNode.BinaryByteDecisionNode
A binary decision Node that compares two byte 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.BinaryByteDecisionNode(int featureIndex,
byte value,
FeatureDefinition featureDefinition)
|
|
DecisionNode.BinaryByteDecisionNode(int uniqueId,
FeatureDefinition featureDefinition)
Creates an empty BinaryByteDecisionNode, the feature and feature value of this node should be filled with setFeatureAndFeatureValue() function. |
|
DecisionNode.BinaryByteDecisionNode(java.lang.String feature,
java.lang.String value,
FeatureDefinition featureDefinition)
Create a new binary String DecisionNode. |
|
| Method Summary | |
|---|---|
byte |
getCriterionValueAsByte()
|
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 |
void |
setFeatureAndFeatureValue(java.lang.String feature,
java.lang.String value)
Fill the feature and feature value of an already created (empty) BinaryByteDecisionNode. |
| 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 |
|---|
public DecisionNode.BinaryByteDecisionNode(java.lang.String feature,
java.lang.String value,
FeatureDefinition featureDefinition)
feature - the string used to get a value from an Itemvalue - the value to compare to
public DecisionNode.BinaryByteDecisionNode(int featureIndex,
byte value,
FeatureDefinition featureDefinition)
public DecisionNode.BinaryByteDecisionNode(int uniqueId,
FeatureDefinition featureDefinition)
uniqueId - unique index from tree HTS test file.featureDefinition - | Method Detail |
|---|
public void setFeatureAndFeatureValue(java.lang.String feature,
java.lang.String value)
feature - value - public byte getCriterionValueAsByte()
public java.lang.String getCriterionValueAsString()
public Node getNextNode(FeatureVector featureVector)
getNextNode in class DecisionNodetarget - the target
public java.lang.String getDecisionPath(int daughterIndex)
DecisionNode
getDecisionPath in class DecisionNodepublic java.lang.String getNodeDefinition()
getNodeDefinition in class DecisionNodepublic DecisionNode.Type getDecisionNodeType()
DecisionNode
getDecisionNodeType in class DecisionNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||