org.knime.core.data.property
Enum SizeModelDouble.Mapping

java.lang.Object
  extended by java.lang.Enum<SizeModelDouble.Mapping>
      extended by org.knime.core.data.property.SizeModelDouble.Mapping
All Implemented Interfaces:
Serializable, Comparable<SizeModelDouble.Mapping>
Enclosing class:
SizeModelDouble

public static enum SizeModelDouble.Mapping
extends Enum<SizeModelDouble.Mapping>

Supported mapping methods.


Enum Constant Summary
EXPONENTIAL
          Exponential mapping: (pow(v) - pow(min) / pow(max) - pow(min)).
LINEAR
          Linear mapping: (v - min / max - min).
LOGARITHMIC
          Logarithmic mapping: (ln(v) - ln(min) / ln(max) - ln(min)).
SQUARE_ROOT
          Square root mapping: (sqrt(v) - sqrt(min) / sqrt(max) - sqrt(min)).
 
Method Summary
(package private) abstract  double getMappedSize(double d, double min, double max, double factor)
          Returns the mapped size according to the referring mapping method.
static List<String> getStringValues()
           
static SizeModelDouble.Mapping valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SizeModelDouble.Mapping[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LINEAR

public static final SizeModelDouble.Mapping LINEAR
Linear mapping: (v - min / max - min).


SQUARE_ROOT

public static final SizeModelDouble.Mapping SQUARE_ROOT
Square root mapping: (sqrt(v) - sqrt(min) / sqrt(max) - sqrt(min)).


LOGARITHMIC

public static final SizeModelDouble.Mapping LOGARITHMIC
Logarithmic mapping: (ln(v) - ln(min) / ln(max) - ln(min)).


EXPONENTIAL

public static final SizeModelDouble.Mapping EXPONENTIAL
Exponential mapping: (pow(v) - pow(min) / pow(max) - pow(min)).

Method Detail

values

public static SizeModelDouble.Mapping[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SizeModelDouble.Mapping c : SizeModelDouble.Mapping.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SizeModelDouble.Mapping valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getMappedSize

abstract double getMappedSize(double d,
                              double min,
                              double max,
                              double factor)
Returns the mapped size according to the referring mapping method.

Parameters:
d - the domain value to be mapped
min - the minimum domain value
max - the maximum domain value
factor - the scaling factor
Returns:
the mapped value

getStringValues

public static List<String> getStringValues()
Returns:
all fields as an unmodifiable list of strings


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.