org.knime.base.node.preproc.equalsizesampling
Class OccurrenceCounter

java.lang.Object
  extended by org.knime.base.node.preproc.equalsizesampling.OccurrenceCounter

final class OccurrenceCounter
extends Object

Author:
Bernd Wiswedel, KNIME.com, Zurich, Switzerland

Nested Class Summary
(package private) static interface OccurrenceCounter.Sampler
           
 
Constructor Summary
OccurrenceCounter(DataCell categoryCell)
           
 
Method Summary
 OccurrenceCounter.Sampler createSampler(int count, EqualSizeSamplingConfiguration.SamplingMethod sampMethod, Random random)
           
(package private)  DataCell getCategoryCell()
           
(package private)  int getCount()
           
(package private)  void incrementCount()
          Increment count by one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OccurrenceCounter

OccurrenceCounter(DataCell categoryCell)
Parameters:
categoryCell -
Method Detail

getCategoryCell

DataCell getCategoryCell()
Returns:
the categoryCell

incrementCount

void incrementCount()
Increment count by one.


getCount

int getCount()
Returns:
the count

createSampler

public OccurrenceCounter.Sampler createSampler(int count,
                                               EqualSizeSamplingConfiguration.SamplingMethod sampMethod,
                                               Random random)


Copyright, 2003 - 2012. 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.