Documentation of 'de.erichseifert.gral.data.filters.Median' Java class
Median
de.erichseifert.gral.data.filters

Class Median

  • All Implemented Interfaces:
    DataListener, DataSource, java.io.Serializable, java.lang.Iterable<java.lang.Comparable<?>>


    public class Median
    extends Filter2D

    Class that calculates the median of a data sequence.

    • Setting and getting offset
    • Setting and getting window size
    See Also:
    Serialized Form
    • Constructor Detail

      • Median

        public Median(DataSource original,
                      int windowSize,
                      int offset,
                      Filter2D.Mode mode,
                      int... cols)
        Creates a new Median object with the specified DataSource, window size, offset, Mode, and columns.
        Parameters:
        original - DataSource to be filtered.
        windowSize - Number of rows to be used for the calculation of the median.
        offset - Offset from the current filtered value to the last value of the window.
        mode - Mode of filtering.
        cols - Column indexes.
    • Method Detail

      • getWindowSize

        public int getWindowSize()
        Returns the size of the window which is used to calculate the median.
        Returns:
        Number of rows used.
      • setWindowSize

        public void setWindowSize(int windowSize)
        Set the size of the window which is used to calculate the median.
        Parameters:
        windowSize - Number of rows used.
      • getOffset

        public int getOffset()
        Returns the offset from the current value used to calculate the median to the last value of the window.
        Returns:
        Offset.
      • setOffset

        public void setOffset(int offset)
        Sets the offset from the current value used to calculate the median to the last value of the window.
        Parameters:
        offset - Offset.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.