org.knime.base.data.bitvector
Class Numeric2BitVectorMeanCellFactory
java.lang.Object
org.knime.core.data.container.AbstractCellFactory
org.knime.core.data.container.SingleCellFactory
org.knime.base.data.bitvector.BitVectorCellFactory
org.knime.base.data.bitvector.Numeric2BitVectorMeanCellFactory
- All Implemented Interfaces:
- CellFactory
public class Numeric2BitVectorMeanCellFactory
- extends BitVectorCellFactory
- Author:
- Fabian Dill, University of Konstanz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Numeric2BitVectorMeanCellFactory
public Numeric2BitVectorMeanCellFactory(DataColumnSpec bitColSpec,
double[] meanValues,
double meanThreshold,
List<Integer> columns)
- Parameters:
bitColSpec
- the column spec of the column containing the bitvectorsmeanValues
- the mean values of the numeric columnsmeanThreshold
- threshold above which the bits should be set
(percentage of the mean)columns
- list of column indices used to create bit vector from
getNumberOfNotSetBits
public int getNumberOfNotSetBits()
-
- Specified by:
getNumberOfNotSetBits
in class BitVectorCellFactory
- Returns:
- the number of not set bits.
getNumberOfSetBits
public int getNumberOfSetBits()
-
- Specified by:
getNumberOfSetBits
in class BitVectorCellFactory
- Returns:
- the number of set bits.
wasSuccessful
public boolean wasSuccessful()
-
- Specified by:
wasSuccessful
in class BitVectorCellFactory
- Returns:
- true if at least one conversion was successful, false otherwise.
getCell
public DataCell getCell(DataRow row)
- Called from getCells. Return the single cell to be returned.
- Specified by:
getCell
in class SingleCellFactory
- Parameters:
row
- The reference row.
- Returns:
- The new cell.
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.