public abstract static class FIMTDD.Node extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected FIMTDD.Node |
alternateTree |
protected boolean |
changeDetection |
protected double |
examplesSeen |
int |
ID |
protected FIMTDD.Node |
originalNode |
protected FIMTDD.Node |
parent |
protected double |
sumOfAbsErrors |
protected double |
sumOfSquares |
protected double |
sumOfValues |
protected FIMTDD |
tree |
Modifier and Type | Method and Description |
---|---|
int |
calcByteSize() |
void |
copyStatistics(FIMTDD.Node node) |
void |
describeSubtree(StringBuilder out,
int indent) |
void |
disableChangeDetection() |
int |
getChildIndex(FIMTDD.Node child) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
int |
getLevel() |
int |
getNumSubtrees() |
FIMTDD.Node |
getParent()
Return the parent node
|
double |
getPrediction(Instance inst) |
void |
restartChangeDetection() |
void |
setChild(int parentBranch,
FIMTDD.Node node) |
void |
setParent(FIMTDD.Node parent)
Set the parent node
|
protected boolean |
skipInLevelCount() |
copy, copy, measureByteSize, measureByteSize, toString
public int ID
protected FIMTDD tree
protected boolean changeDetection
protected FIMTDD.Node parent
protected FIMTDD.Node alternateTree
protected FIMTDD.Node originalNode
protected double examplesSeen
protected double sumOfValues
protected double sumOfSquares
protected double sumOfAbsErrors
public Node(FIMTDD tree)
public void copyStatistics(FIMTDD.Node node)
public int calcByteSize()
public void setParent(FIMTDD.Node parent)
public FIMTDD.Node getParent()
public void disableChangeDetection()
public void restartChangeDetection()
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 double getPrediction(Instance inst)
public void describeSubtree(StringBuilder out, int indent)
public int getLevel()
public void setChild(int parentBranch, FIMTDD.Node node)
public int getChildIndex(FIMTDD.Node child)
public int getNumSubtrees()
protected boolean skipInLevelCount()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.