adams.gui.visualization.stats.scatterplot
Class Lowess

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.gui.visualization.stats.scatterplot.AbstractScatterPlotOverlay
              extended by adams.gui.visualization.stats.scatterplot.Lowess
All Implemented Interfaces:
Debuggable, Destroyable, OptionHandler, SizeOfHandler, TechnicalInformationHandler, Serializable

public class Lowess
extends AbstractScatterPlotOverlay
implements TechnicalInformationHandler

Display a lowess curve as an overlay.
WikiPedia. Local Regression. URL http://en.wikipedia.org/wiki/Lowess.

BibTeX:

 @misc{missing_id,
    author = {WikiPedia},
    title = {Local Regression},
    URL = {http://en.wikipedia.org/wiki/Lowess}
 }
 

Valid options are:

-D <int> (property: debugLevel)
    The greater the number the more additional info the scheme may output to
    the console (0 = off).
    default: 0
    minimum: 0
 
-line-thickness <float> (property: thickness)
    Thickness of the overlay line
    default: 2.0
    minimum: 1.0
    maximum: 5.0
 
-color <java.awt.Color> (property: color)
    Color of the overlay line
    default: #0000ff
 
-window-size <int> (property: windowSize)
    Set the size of the data window for lowess fitting
    default: 120
    minimum: 20
 

Version:
$Revision: 4584 $
Author:
msf8
See Also:
Serialized Form

Field Summary
protected  int m_WindowSize
          Size of window for calculating lowess
 
Fields inherited from class adams.gui.visualization.stats.scatterplot.AbstractScatterPlotOverlay
m_Color, m_Instances, m_Paintlet, m_Parent, m_Thickness
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
Lowess()
           
 
Method Summary
 void defineOptions()
           
 TechnicalInformation getTechnicalInformation()
           
 int getWindowSize()
          get the size of the data window
 String globalInfo()
           
 void setUp()
          set up the overlay and it's paintlet
 void setWindowSize(int val)
          Set the size of the data window for the lowess fitting
 String windowSizeTipText()
          Returns a tip text for the data window size property
 
Methods inherited from class adams.gui.visualization.stats.scatterplot.AbstractScatterPlotOverlay
colorTipText, getColor, getPaintlet, getParent, getThickness, inst, name, setColor, setParent, setThickness, shallowCopy, shallowCopy, thicknessTipText
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_WindowSize

protected int m_WindowSize
Size of window for calculating lowess

Constructor Detail

Lowess

public Lowess()
Method Detail

globalInfo

public String globalInfo()
Specified by:
globalInfo in class AbstractOptionHandler

setUp

public void setUp()
Description copied from class: AbstractScatterPlotOverlay
set up the overlay and it's paintlet

Specified by:
setUp in class AbstractScatterPlotOverlay

defineOptions

public void defineOptions()
Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractScatterPlotOverlay

setWindowSize

public void setWindowSize(int val)
Set the size of the data window for the lowess fitting

Parameters:
val - Size of data window

getWindowSize

public int getWindowSize()
get the size of the data window

Returns:
size of the data window

windowSizeTipText

public String windowSizeTipText()
Returns a tip text for the data window size property

Returns:
String explaining the property

getTechnicalInformation

public TechnicalInformation getTechnicalInformation()
Specified by:
getTechnicalInformation in interface TechnicalInformationHandler


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.