org.knime.base.node.mine.sota.logic
Class CellClassCounter

java.lang.Object
  extended by org.knime.base.node.mine.sota.logic.CellClassCounter

public class CellClassCounter
extends Object

Author:
Kilian Thiel, University of Konstanz

Constructor Summary
CellClassCounter()
          Creates new instance of CellClassCounter.
 
Method Summary
 void addClass(String cellClass)
          Adds the given class to the class frequency counter.
 String getMostFrequentClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellClassCounter

public CellClassCounter()
Creates new instance of CellClassCounter.

Method Detail

addClass

public void addClass(String cellClass)
Adds the given class to the class frequency counter.

Parameters:
cellClass - The class to add.

getMostFrequentClass

public String getMostFrequentClass()
Returns:
the class which appears most frequently.


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.