org.knime.base.node.preproc.autobinner.apply
Class NumericBin
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericBin
NumericBin(DataCell binName,
boolean isLeftOpen,
double leftMargin,
boolean isRightOpen,
double rightMargin)
- Parameters:
binName - the value of the binisLeftOpen - true if left interval is openleftMargin - the left interval marginisRightOpen - true if the right interval is openrightMargin - the right interval margin
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.