def METHOD_NAME(self):
    t = self._n
    t_0 = self.t_0
    threshold = 1 / (1 + math.exp(-4 * (t - t_0) / self.w))
    self._drift_detected = self._rng.random() < threshold
    if self.drift_detected:
        self._n = 0