def METHOD_NAME(self, parameters, roi=None):
    """
    Enables auto background extraction and removal from the data pattern
    :param parameters: array of parameters with [window_width, iterations, polynomial_order]
    :param roi: array of size two with [x_min, x_max] specifying the range for the background subtraction
    will be performed
    """
    self.pattern.METHOD_NAME(parameters, roi)
    self.pattern_changed.emit()