org.knime.base.node.mine.bfn
Class BasisFunctionFilterRow

java.lang.Object
  extended by org.knime.base.node.mine.bfn.BasisFunctionFilterRow
All Implemented Interfaces:
Iterable<DataCell>, DataRow

final class BasisFunctionFilterRow
extends Object
implements DataRow

Inner class to separate an data input row into a new row which are the first n-1 double cells and returns the class label.


Constructor Summary
BasisFunctionFilterRow(BasisFunctionLearnerTable model, DataRow row, int[] dataColumns, int[] classColumns, String[] classColumnNames, BasisFunctionLearnerTable.MissingValueReplacementFunction missing)
          Create new basisfunction input data row with data and class columns.
 
Method Summary
(package private)  DataCell getBestClass()
           
 DataCell getCell(int index)
          Returns the DataCell at the provided index within this row.
 RowKey getKey()
          Returns the row key.
(package private)  double getMatch(DataCell oClass)
          Matching degree of the given class label.
 int getNumCells()
          Returns the length of this row, that is the number of columns of the DataTable (not including the row key).
 Iterator<DataCell> iterator()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasisFunctionFilterRow

BasisFunctionFilterRow(BasisFunctionLearnerTable model,
                       DataRow row,
                       int[] dataColumns,
                       int[] classColumns,
                       String[] classColumnNames,
                       BasisFunctionLearnerTable.MissingValueReplacementFunction missing)
Create new basisfunction input data row with data and class columns.

Parameters:
model - the underlying basisfunction learner
row - the row to filter in data and class label
dataColumns - indices of the data columns
classColumns - indices of the classification columns
classColumnNames - names of the target columns
missing - the missing value replacement function
Method Detail

getNumCells

public int getNumCells()
Returns the length of this row, that is the number of columns of the DataTable (not including the row key).

Specified by:
getNumCells in interface DataRow
Returns:
length of this row

getKey

public RowKey getKey()
Returns the row key.

Specified by:
getKey in interface DataRow
Returns:
the row key

getCell

public DataCell getCell(int index)
Returns the DataCell at the provided index within this row.

Specified by:
getCell in interface DataRow
Parameters:
index - the index of the cell to retrieve (indices start from 0)
Returns:
the DataCell at the given index

getBestClass

DataCell getBestClass()
Returns:
class with maximum degree

getMatch

double getMatch(DataCell oClass)
Matching degree of the given class label.

Parameters:
oClass - class label
Returns:
degree of fulfillment

iterator

public Iterator<DataCell> iterator()

Specified by:
iterator in interface Iterable<DataCell>


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.