public static class DecisionNode.ShortDecisionNode 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.ShortDecisionNode(int featureIndex,
int numDaughters,
FeatureDefinition featureDefinition)
Build a new short decision node
|
DecisionNode.ShortDecisionNode(String feature,
int numDaughters,
FeatureDefinition featureDefinition)
Build a new short decision node
|
Modifier and Type | Method and Description |
---|---|
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
|
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.ShortDecisionNode(String feature, int numDaughters, FeatureDefinition featureDefinition)
feature
- the feature namenumDaughters
- the number of daughtersfeatureDefinition
- featureDefinitionpublic DecisionNode.ShortDecisionNode(int featureIndex, int numDaughters, FeatureDefinition featureDefinition)
featureIndex
- the feature indexnumDaughters
- the number of daughtersfeatureDefinition
- featureDefinitionpublic 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.