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

java.lang.Object
  extended by org.knime.base.node.mine.bfn.BestGuessMissingValueReplacementFunction
All Implemented Interfaces:
BasisFunctionLearnerTable.MissingValueReplacementFunction

final class BestGuessMissingValueReplacementFunction
extends Object
implements BasisFunctionLearnerTable.MissingValueReplacementFunction

"Best Guess" replacement which searches for the best value in the model or just takes the mean if not available.


Constructor Summary
BestGuessMissingValueReplacementFunction()
           
 
Method Summary
 DataCell getMissing(BasisFunctionFilterRow row, int col, BasisFunctionLearnerTable model)
          This function returns the missing replacement value for a given value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BestGuessMissingValueReplacementFunction

BestGuessMissingValueReplacementFunction()
Method Detail

getMissing

public DataCell getMissing(BasisFunctionFilterRow row,
                           int col,
                           BasisFunctionLearnerTable model)
This function returns the missing replacement value for a given value.

Specified by:
getMissing in interface BasisFunctionLearnerTable.MissingValueReplacementFunction
Parameters:
row - the row to replace the missing value in
col - the column index
model - this basis function model
Returns:
the missing replacement value

toString

public String toString()
Overrides:
toString in class Object
Returns:
Best Guess


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.