net.sf.myra.antree.representation
Class InternalNode

java.lang.Object
  extended by net.sf.myra.antree.representation.Node
      extended by net.sf.myra.antree.representation.InternalNode
All Implemented Interfaces:
java.lang.Cloneable

public final class InternalNode
extends Node

Version:
$Revision: 2320 $ $Date:: 2011-01-25 13:06:10#$
Author:
Fernando Esteban Barril Otero

Field Summary
 
Fields inherited from class net.sf.myra.antree.representation.Node
INITIAL_LEVEL
 
Constructor Summary
InternalNode(int level, net.sf.myra.datamining.data.Attribute attribute, Branch[] branches)
          Creates a new internal node.
 
Method Summary
 net.sf.myra.datamining.data.Label getPrediction()
          Returns the label predicted by the node.
 java.lang.String label()
          Returns a label representation of this node.
 void setPrediction(net.sf.myra.datamining.data.Label prediction)
          Sets the prediction of the node.
 
Methods inherited from class net.sf.myra.antree.representation.Node
clone, equals, getAttribute, getBranch, getBranch, getBranch, getBranches, getLevel, getParent, hashCode, isLeaf, setLevel, toString, validate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalNode

public InternalNode(int level,
                    net.sf.myra.datamining.data.Attribute attribute,
                    Branch[] branches)
Creates a new internal node.

Parameters:
level - the level of the node.
attribute - the attribute represented by the node.
branches - the branches originating from this node.
Method Detail

label

public java.lang.String label()
Description copied from class: Node
Returns a label representation of this node.

Specified by:
label in class Node
Returns:
a label representation of this node.

getPrediction

public net.sf.myra.datamining.data.Label getPrediction()
Description copied from class: Node
Returns the label predicted by the node.

Specified by:
getPrediction in class Node
Returns:
the label predicted by the node.

setPrediction

public void setPrediction(net.sf.myra.datamining.data.Label prediction)
Description copied from class: Node
Sets the prediction of the node.

Specified by:
setPrediction in class Node
Parameters:
prediction - the prediction to set.


Copyright © 2013. All Rights Reserved.