docstr: Update online state based on the provided test instance.
  
  Parameters
  ----------
  x_t
      The test instance.
docstr_tok: ["Update","online","state","based","on","the","provided","test","instance",".","Parameters","--","--","--","--","--","x_t","The","test","instance","."]
code: def _update_state(self, x_t: np.ndarray):
      """
      Update online state based on the provided test instance.
  
      Parameters
      ----------
      x_t
          The test instance.
      """
      self.t += 1
      if self.t == 1:
          # Initialise stream
          self.xs = x_t
          self.ids_ref_wins = (x_t >= self.x_ref)[:, None, :]
          self.ids_wins_ref = (x_t <= self.x_ref)[None, :, :]
          self.ids_wins_wins = np.full((1, 1, self.n_features), 1)
      else:
          # Update stream
          self.xs = np.concatenate([self.xs, x_t])
          self.ids_ref_wins = np.concatenate(
              [
                  self.ids_ref_wins[:, -(self.max_ws - 1) :, :],
                  (x_t >= self.x_ref)[:, None, :],
              ],
              1,
          )
          self.ids_wins_ref = np.concatenate(
              [
                  self.ids_wins_ref[-(self.max_ws - 1) :, :, :],
                  (x_t <= self.x_ref)[None, :, :],
              ],
              0,
          )
          self.ids_wins_wins = np.concatenate(
              [
                  self.ids_wins_wins[
                      -(self.max_ws - 1) :, -(self.max_ws - 1) :, :
                  ],
                  (x_t >= self.xs[-self.max_ws : -1, :])[:, None, :],
              ],
              1,
          )
          self.ids_wins_wins = np.concatenate(
              [
                  self.ids_wins_wins,
                  (x_t <= self.xs[-self.max_ws :, :])[None, :, :],
              ],
              0,
          )
  
imports: import numpy
  from typing import Any, Callable, List, Optional, Union
  from alibi_detect.base import DriftConfigMixin
  from alibi_detect.cd.base_online import BaseUniDriftOnline
  from alibi_detect.utils.misc import quantile
  import numba
  from tqdm import tqdm
  import warnings
label_desc: Use image node_id 5 for calling the CVMDriftOnline obj's underlying member method code with example usage: obj._update_state(x_t) without return types