public static class DecisionNode.BinaryByteDecisionNode extends DecisionNode
DecisionNode.BinaryByteDecisionNode, DecisionNode.BinaryFloatDecisionNode, DecisionNode.BinaryShortDecisionNode, DecisionNode.ByteDecisionNode, DecisionNode.ShortDecisionNode, DecisionNode.Type
daughters, feature, featureDefinition, featureIndex, lastDaughter, nData, TRACE, uniqueDecisionNodeId
Constructor and Description |
---|
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(String feature,
String value,
FeatureDefinition featureDefinition)
Create a new binary String DecisionNode.
|
Modifier and Type | Method and Description |
---|---|
byte |
getCriterionValueAsByte() |
String |
getCriterionValueAsString() |
DecisionNode.Type |
getDecisionNodeType()
Get the decision node type
|
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
|
String |
getNodeDefinition()
Gets the String that defines the decision done in the node
|
void |
setFeatureAndFeatureValue(String feature,
String value)
Fill the feature and feature value of an already created (empty) BinaryByteDecisionNode.
|
addDaughter, countData, fillData, getAllData, getDaughter, getFeatureDefinition, getFeatureIndex, getFeatureName, getNumberOfData, getNumberOfDaugthers, getNumberOfNodes, getUniqueDecisionNodeId, hasMoreDaughters, isDecisionNode, replaceDaughter, setUniqueDecisionNodeId, toString
getDecisionPath, getMother, getNodeIndex, getRootNode, isDirectedGraphNode, isLeafNode, isRoot, setIsRoot, setMother, toString
public DecisionNode.BinaryByteDecisionNode(String feature, String value, FeatureDefinition featureDefinition)
feature
- the string used to get a value from an Itemvalue
- the value to compare tofeatureDefinition
- featureDefinitionpublic DecisionNode.BinaryByteDecisionNode(int featureIndex, byte value, FeatureDefinition featureDefinition)
public DecisionNode.BinaryByteDecisionNode(int uniqueId, FeatureDefinition featureDefinition)
uniqueId
- unique index from tree HTS test file.featureDefinition
- featureDefinitionpublic void setFeatureAndFeatureValue(String feature, String value)
feature
- featurevalue
- valuepublic byte getCriterionValueAsByte()
public String getCriterionValueAsString()
public Node getNextNode(FeatureVector featureVector)
getNextNode
in class DecisionNode
featureVector
- the feature vectorpublic String getDecisionPath(int daughterIndex)
DecisionNode
getDecisionPath
in class DecisionNode
daughterIndex
- daughterIndexpublic String getNodeDefinition()
getNodeDefinition
in class DecisionNode
public DecisionNode.Type getDecisionNodeType()
DecisionNode
getDecisionNodeType
in class DecisionNode
Copyright © 2000–2016 DFKI GmbH. All rights reserved.