com.rapidminer.gui.plotter
Class AxisTransformationLog

java.lang.Object
  extended by com.rapidminer.gui.plotter.AxisTransformationLog
All Implemented Interfaces:
AxisTransformation

public class AxisTransformationLog
extends java.lang.Object
implements AxisTransformation

Transforms the given value by applying a log function.

Author:
Ingo Mierswa

Constructor Summary
AxisTransformationLog()
           
 
Method Summary
 double adaptTicsMax(double max, double ticSize)
          Adapts the maximum corresponding to the given tic size.
 double adaptTicsMin(double min, double ticSize)
          Adapts the minimum corresponding to the given tic size.
 java.lang.String format(double value, int formatNumber)
          Returns the formatted value.
 double inverseTransform(double value)
          Transforms the given value by applying an exponential function.
 double transform(double value)
          Transforms the given value by applying a log function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisTransformationLog

public AxisTransformationLog()
Method Detail

transform

public double transform(double value)
Transforms the given value by applying a log function.

Specified by:
transform in interface AxisTransformation

inverseTransform

public double inverseTransform(double value)
Transforms the given value by applying an exponential function.

Specified by:
inverseTransform in interface AxisTransformation

format

public java.lang.String format(double value,
                               int formatNumber)
Returns the formatted value. Returns null if the value does not start with 1.

Specified by:
format in interface AxisTransformation

adaptTicsMin

public double adaptTicsMin(double min,
                           double ticSize)
Adapts the minimum corresponding to the given tic size.

Specified by:
adaptTicsMin in interface AxisTransformation

adaptTicsMax

public double adaptTicsMax(double max,
                           double ticSize)
Adapts the maximum corresponding to the given tic size.

Specified by:
adaptTicsMax in interface AxisTransformation


Copyright © 2001-2009 by Rapid-I