org.knime.base.node.mine.decisiontree2
Class TempTreeNodeContainer

java.lang.Object
  extended by org.knime.base.node.mine.decisiontree2.TempTreeNodeContainer

 class TempTreeNodeContainer
extends Object

Author:
albrecht, University of Konstanz, Dominik Morent, KNIME.com, Zurich, Switzerland

Constructor Summary
TempTreeNodeContainer(int ownIndex, String majorityClass, double allClassFrequency, int level, String defaultChild)
           
 
Method Summary
(package private)  void addClassCount(DataCell className, double value)
           
(package private)  double getAllClassFrequency()
           
(package private)  LinkedHashMap<DataCell,Double> getClassCounts()
           
 int getDefaultChild()
           
(package private)  int getLevel()
           
(package private)  DataCell getMajorityClass()
           
(package private)  double getOwnClassFrequency()
           
(package private)  int getOwnIndex()
           
 PMMLPredicate getPredicate()
           
(package private)  void setPredicate(PMMLPredicate pred)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TempTreeNodeContainer

TempTreeNodeContainer(int ownIndex,
                      String majorityClass,
                      double allClassFrequency,
                      int level,
                      String defaultChild)
Parameters:
ownIndex - index of this node
majorityClass - of this node
allClassFrequency - sum of class frequencies
level - depth of tree for this node
defaultChild - the index of the default child
Method Detail

addClassCount

void addClassCount(DataCell className,
                   double value)
Parameters:
className - to be added to
value - can be >1 in case of missing values

setPredicate

void setPredicate(PMMLPredicate pred)
Parameters:
pred - the child predicate to be set

getPredicate

public PMMLPredicate getPredicate()
Returns:
the predicate

getOwnIndex

int getOwnIndex()
Returns:
index

getMajorityClass

DataCell getMajorityClass()
Returns:
value (score)

getAllClassFrequency

double getAllClassFrequency()
Returns:
amount (record count)

getOwnClassFrequency

double getOwnClassFrequency()
Returns:
frequency of majority class in this node

getLevel

int getLevel()
Returns:
depth in tree

getDefaultChild

public int getDefaultChild()
Returns:
the defaultChild

getClassCounts

LinkedHashMap<DataCell,Double> getClassCounts()
Returns:
all class counts

toString

public String toString()

Overrides:
toString in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.