def METHOD_NAME(self, x):
    if self.drift_detected:
        self._reset()
    self._x_mean.METHOD_NAME(x)
    dev = x - self._x_mean.get()
    self._sum_increase = self.alpha * self._sum_increase + dev - self.delta
    self._sum_decrease = self.alpha * self._sum_decrease + dev + self.delta
    if self._sum_increase < self._min_increase:
        self._min_increase = self._sum_increase
    if self._sum_decrease > self._max_decrease:
        self._max_decrease = self._sum_decrease
    if self._x_mean.n >= self.min_instances:
        test_increase = self._sum_increase - self._min_increase
        test_decrease = self._max_decrease - self._sum_decrease
        self._drift_detected = self._test_drift(test_increase, test_decrease)
    return self