Class CenteredMovingAverage
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.stats.scatterplot.AbstractScatterPlotOverlay
-
- adams.gui.visualization.stats.scatterplot.CenteredMovingAverage
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,TechnicalInformationHandler,Serializable
public class CenteredMovingAverage extends AbstractScatterPlotOverlay implements TechnicalInformationHandler
Display a smoothed curve as an overlay.
WikiPedia. Moving average. URL https://en.wikipedia.org/wiki/Moving_average
@misc{missing_id, author = {WikiPedia}, title = {Moving average}, URL = {https://en.wikipedia.org/wiki/Moving_average} }
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING min-user-mode: Expert
-line-thickness <float> (property: thickness) Thickness of the overlay line default: 2.0 minimum: 0.0
-color <java.awt.Color> (property: color) Color of the overlay line default: #0000ff
-window-size <int> (property: windowSize) Set the window size for smoothing, uneven number. default: 15 minimum: 1
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_WindowSizethe window size-
Fields inherited from class adams.gui.visualization.stats.scatterplot.AbstractScatterPlotOverlay
m_Color, m_Data, m_Paintlet, m_Parent, m_Thickness
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description CenteredMovingAverage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.TechnicalInformationgetTechnicalInformation()Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.intgetWindowSize()get the size of the data window.StringglobalInfo()Returns a string describing the object.voidsetUp()set up the overlay and its paintlet.voidsetWindowSize(int value)Set the size of the data window for the lowess fitting.StringwindowSizeTipText()Returns a tip text for the data window size property.-
Methods inherited from class adams.gui.visualization.stats.scatterplot.AbstractScatterPlotOverlay
colorTipText, getColor, getDefaultColor, getDefaultThickness, getPaintlet, getParent, getThickness, inst, name, setColor, setParent, setThickness, shallowCopy, shallowCopy, thicknessTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getTechnicalInformation
public TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformationin interfaceTechnicalInformationHandler- Returns:
- the technical information about this class
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractScatterPlotOverlay
-
setWindowSize
public void setWindowSize(int value)
Set the size of the data window for the lowess fitting.- Parameters:
value- 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
-
setUp
public void setUp()
set up the overlay and its paintlet.- Specified by:
setUpin classAbstractScatterPlotOverlay
-
-