Class AbstractOutlierDetector<T extends DataContainer>

    • Constructor Detail

      • AbstractOutlierDetector

        public AbstractOutlierDetector()
    • Method Detail

      • reset

        public void reset()
        Resets the detector. Derived classes must call this method in set-methods of parameters to assure the invalidation of previously generated data.
        Overrides:
        reset in class AbstractOptionHandler
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory. Sets the input data to null.
        Specified by:
        cleanUp in interface CleanUpHandler
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • detect

        public List<String> detect​(T data)
        Returns the detections on the specified data.
        Specified by:
        detect in interface OutlierDetector<T extends DataContainer>
        Parameters:
        data - the data to process
        Returns:
        the detections
      • checkData

        protected void checkData​(T data)
        The default implementation only checks whether there is any data set.
        Parameters:
        data - the data to process
      • processData

        protected abstract List<String> processData​(T data)
        Performs the actual detection.
        Parameters:
        data - the data to process
        Returns:
        the detections
      • compareTo

        public int compareTo​(Object o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Only compares the commandlines of the two objects.
        Specified by:
        compareTo in interface Comparable<T extends DataContainer>
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Throws:
        ClassCastException - if the specified object's type prevents it from being compared to this object.
      • equals

        public boolean equals​(Object o)
        Returns whether the two objects are the same.

        Only compares the commandlines of the two objects.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared
        Returns:
        true if the object is the same as this one
      • getOutlierDetectors

        public static String[] getOutlierDetectors()
        Returns a list with classnames of detector.
        Returns:
        the detector classnames
      • forName

        public static AbstractOutlierDetector forName​(String classname,
                                                      String[] options)
        Instantiates the detector with the given options.
        Parameters:
        classname - the classname of the detector to instantiate
        options - the options for the detector
        Returns:
        the instantiated detector or null if an error occurred
      • forCommandLine

        public static AbstractOutlierDetector forCommandLine​(String cmdline)
        Instantiates the detector from the given commandline (i.e., classname and optional options).
        Parameters:
        cmdline - the classname (and optional options) of the detector to instantiate
        Returns:
        the instantiated detector or null if an error occurred