Class 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 Detail

      • m_WindowSize

        protected int m_WindowSize
        the window size
    • Constructor Detail

      • CenteredMovingAverage

        public CenteredMovingAverage()
    • Method Detail

      • 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:
        getTechnicalInformation in interface TechnicalInformationHandler
        Returns:
        the technical information about this class
      • 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