Class IQR

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

    public class IQR
    extends AbstractNumericOutlierDetector
    Interquartile range based detector.
    If difference between actual/predicted is more than the factor of standard deviations away from the quartial 0.25/0.75, then the point gets flagged as outlier.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -factor <double> (property: factor)
        The factor which determines whether a value is an outlier.
        default: 3.0
        minimum: 0.0
     
    -use-relative <boolean> (property: useRelative)
        If enabled, relative values (divided by actual) are used instead of absolute 
        ones.
        default: false
     
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Factor

        protected double m_Factor
        the outlier factor.
      • m_UseRelative

        protected boolean m_UseRelative
        whether to use relative values instead of absolute ones.
    • Constructor Detail

      • IQR

        public IQR()
    • Method Detail

      • setFactor

        public void setFactor​(double value)
        Sets the factor which determines whether a value is an outlier.
        Parameters:
        value - the factor
      • getFactor

        public double getFactor()
        Returns the factor which determines whether a value is an outlier.
        Returns:
        the factor
      • factorTipText

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

        public void setUseRelative​(boolean value)
        Sets whether to use relative values (divided by actual) rather than absolute ones.
        Parameters:
        value - true if relative
      • getUseRelative

        public boolean getUseRelative()
        Returns whether to use relative values (divided by actual) rather than absolute ones.
        Returns:
        true if relative
      • useRelativeTipText

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