|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.util.coordinate.LogarithmicMappingMethod
public class LogarithmicMappingMethod
A logarithmic mapping method. This will be applied to the data before creating ticks.
Field Summary | |
---|---|
static String |
ID_BASE_10
Identifier for a logarithmic mapping method with base 10 ( log ). |
static String |
ID_BASE_2
Identifier for a logarithmic mapping method with base 2 ( ld ). |
static String |
ID_BASE_E
Identifier for a logarithmic mapping method with base e ( ln ). |
Constructor Summary | |
---|---|
LogarithmicMappingMethod()
Creates a logarithmic mapping method. |
|
LogarithmicMappingMethod(double base)
Creates a logarithmic mapping method with the given base. |
Method Summary | |
---|---|
DataCell |
doMapping(DataCell in)
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 |
---|
public static final String ID_BASE_E
public static final String ID_BASE_2
public static final String ID_BASE_10
Constructor Detail |
---|
public LogarithmicMappingMethod()
public LogarithmicMappingMethod(double base)
base
- the base of the logarithmMethod Detail |
---|
public DataCell doMapping(DataCell in)
doMapping
in interface MappingMethod
in
- the value to map
public String getDisplayName()
MappingMethod
.
getDisplayName
in interface MappingMethod
public boolean isCompatibleWithDomain(DataColumnDomain domain)
true
by default.
The logarithmic mapping method is usable if lower bound is greater or
equal 0 and the upper bound is greater than 1 for scaling reasons.
isCompatibleWithDomain
in interface MappingMethod
domain
- the domain
true
, if this mapping method is compatible.public double getLabel(DataCell cell)
getLabel
in interface MappingMethod
cell
- the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |