Class AbstractBaselineCorrection<T extends DataContainer>

    • Constructor Detail

      • AbstractBaselineCorrection

        public AbstractBaselineCorrection()
    • Method Detail

      • reset

        protected void reset()
        Resets the baseline correction scheme. 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
      • correct

        public T correct​(T data)
        Corrects the data.
        Parameters:
        data - the data to correct
        Returns:
        the corrected data
      • doCorrect

        protected T doCorrect​(T data)
        Performs checks and corrects the data.
        Parameters:
        data - the data to correct
        Returns:
        the corrected data
      • checkData

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

        protected abstract T processData​(T data)
        Performs the actual correcting.
        Parameters:
        data - the data to correct
        Returns:
        the corrected data
      • 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
      • forCommandLine

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