public static enum SizeModelDouble.Mapping extends Enum<SizeModelDouble.Mapping>
Enum Constant and Description |
---|
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)).
|
Modifier and Type | Method and Description |
---|---|
(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.
|
public static final SizeModelDouble.Mapping LINEAR
public static final SizeModelDouble.Mapping SQUARE_ROOT
public static final SizeModelDouble.Mapping LOGARITHMIC
public static final SizeModelDouble.Mapping EXPONENTIAL
public static SizeModelDouble.Mapping[] values()
for (SizeModelDouble.Mapping c : SizeModelDouble.Mapping.values()) System.out.println(c);
public static SizeModelDouble.Mapping valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullabstract double getMappedSize(double d, double min, double max, double factor)
d
- the domain value to be mappedmin
- the minimum domain valuemax
- the maximum domain valuefactor
- the scaling factor
KNIME GmbH, Konstanz, Germany
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.