|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SizeModelDouble.Mapping>
org.knime.core.data.property.SizeModelDouble.Mapping
public static 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 |
---|
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
Method Detail |
---|
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 name
NullPointerException
- 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
public static List<String> getStringValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |