Class OnOneSideViolations

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, ViolationFinder, Serializable

    public class OnOneSideViolations
    extends AbstractViolationFinder
    Flags a data point as violation if it is the start of consecutive sequence (of specified minimum length) of points that are all on one side.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -min-points <int> (property: minPoints)
        The minimum number of points that have to be on one side.
        default: 7
        minimum: 1
     
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_MinPoints

        protected int m_MinPoints
        the minimum number of data points on one side before flagging as violation.
    • Constructor Detail

      • OnOneSideViolations

        public OnOneSideViolations()
    • Method Detail

      • setMinPoints

        public void setMinPoints​(int value)
        Sets the minimum number of points that have to be on one side.
        Parameters:
        value - the minimum number of points
      • getMinPoints

        public int getMinPoints()
        Returns whether to produce mean or variation data.
        Returns:
        true if to generate variation data
      • minPointsTipText

        public String minPointsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doFind

        protected int[] doFind​(double[] data,
                               Limits[] limits)
        Performs the finding.
        Specified by:
        doFind in class AbstractViolationFinder
        Parameters:
        data - the data to check
        limits - the limits for the data
        Returns:
        the indices of the violations