org.knime.base.util.coordinate
Class SquareRootMappingMethod

java.lang.Object
  extended by org.knime.base.util.coordinate.SquareRootMappingMethod
All Implemented Interfaces:
MappingMethod

public class SquareRootMappingMethod
extends Object
implements MappingMethod

Author:
Stephan Sellien, University of Konstanz

Field Summary
static String ID_SQRT
          ID for a square root mapping method.
 
Constructor Summary
SquareRootMappingMethod()
           
 
Method Summary
 DataCell doMapping(DataCell cell)
          Maps the value according to its task.
 String getDisplayName()
          Returns the display name of this MappingMethod.
 double getLabel(DataCell cell)
          Maps a value back to the original domain value for tick generation.
 boolean isCompatibleWithDomain(DataColumnDomain domain)
          Checks compatibility with a domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_SQRT

public static final String ID_SQRT
ID for a square root mapping method.

See Also:
Constant Field Values
Constructor Detail

SquareRootMappingMethod

public SquareRootMappingMethod()
Method Detail

doMapping

public DataCell doMapping(DataCell cell)
Maps the value according to its task.

Specified by:
doMapping in interface MappingMethod
Parameters:
cell - the value to map
Returns:
the mapped value

getDisplayName

public String getDisplayName()
Returns the display name of this MappingMethod.

Specified by:
getDisplayName in interface MappingMethod
Returns:
the display name

isCompatibleWithDomain

public boolean isCompatibleWithDomain(DataColumnDomain domain)
Checks compatibility with a domain. Returns true by default.

Specified by:
isCompatibleWithDomain in interface MappingMethod
Parameters:
domain - the domain
Returns:
true, if this mapping method is compatible.

getLabel

public double getLabel(DataCell cell)
Maps a value back to the original domain value for tick generation. Is the inverse function.

Specified by:
getLabel in interface MappingMethod
Parameters:
cell - the value
Returns:
the inverse value of cell according to this mapping


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.