org.knime.base.node.preproc.autobinner.apply
Class NumericBin

java.lang.Object
  extended by org.knime.base.node.preproc.autobinner.apply.NumericBin

 class NumericBin
extends Object

Encapsulates a bin.

Author:
Heiko Hofer

Constructor Summary
NumericBin(DataCell binName, boolean isLeftOpen, double leftMargin, boolean isRightOpen, double rightMargin)
           
 
Method Summary
 boolean covers(DataCell cell)
           
 DataCell getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericBin

NumericBin(DataCell binName,
           boolean isLeftOpen,
           double leftMargin,
           boolean isRightOpen,
           double rightMargin)
Parameters:
binName - the value of the bin
isLeftOpen - true if left interval is open
leftMargin - the left interval margin
isRightOpen - true if the right interval is open
rightMargin - the right interval margin
Method Detail

getValue

public DataCell getValue()
Returns:
the value of a bin

covers

public boolean covers(DataCell cell)
Parameters:
cell - the cell to check coverage
Returns:
true, if interval covers the given value
Throws:
ClassCastException - if the cell is not of type DoubleValue


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.