public abstract static class ORTO.Node extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected boolean |
Adaptable |
protected boolean |
Alternate |
protected ORTO.Node |
alternateTree |
int |
ID |
protected ORTO.InnerNode |
parent |
Constructor and Description |
---|
ORTO.Node(int id) |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
void |
calculateDetph(ORTO tree) |
int |
getChildIndex(ORTO.Node child) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
int |
getLevel() |
int |
getNumSubtrees() |
ORTO.InnerNode |
getParent()
Return the parent node
|
double[] |
getPrediction(weka.core.Instance inst,
ORTO tree) |
boolean |
isLeaf() |
double[] |
processInstance(weka.core.Instance inst,
ORTO tree) |
void |
setAdaptable(boolean value) |
void |
setAlternate(boolean value) |
void |
setChild(int parentBranch,
ORTO.Node node) |
void |
setParent(ORTO.InnerNode parent)
Set the parent node
|
copy, copy, measureByteSize, measureByteSize, toString
public int ID
protected ORTO.InnerNode parent
protected ORTO.Node alternateTree
protected boolean Alternate
protected boolean Adaptable
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic int calcByteSize()
public boolean isLeaf()
public void calculateDetph(ORTO tree)
public int getLevel()
public void setParent(ORTO.InnerNode parent)
public ORTO.InnerNode getParent()
public void setChild(int parentBranch, ORTO.Node node)
public int getChildIndex(ORTO.Node child)
public int getNumSubtrees()
public double[] processInstance(weka.core.Instance inst, ORTO tree)
public double[] getPrediction(weka.core.Instance inst, ORTO tree)
public void setAdaptable(boolean value)
public void setAlternate(boolean value)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.