class_docstr: Computes the rolling interquartile range.
  
  Parameters
  ----------
  window_size
      Size of the window.
  q_inf
      Desired inferior quantile, must be between 0 and 1. Defaults to `0.25`.
  q_sup
      Desired superior quantile, must be between 0 and 1. Defaults to `0.75`.
  
  Examples
  --------
  
  >>> from river import stats
  >>> rolling_iqr = stats.RollingIQR(
  ...     q_inf=0.25,
  ...     q_sup=0.75,
  ...     window_size=101
  ... )
  
  >>> for i in range(0, 1001):
  ...     rolling_iqr.update(i)
  ...     if i % 100 == 0:
  ...         print(rolling_iqr.get())
  0.0
  50.0
  50.0
  50.0
  50.0
  50.0
  50.0
  50.0
  50.0
  50.0
  50.0
class_docstr_tok: ["Computes","the","rolling","interquartile","range",".","Parameters","--","--","--","--","--","window_size","Size","of","the","window",".","q_inf","Desired","inferior","quantile",",","must","be","between","0","and","1",".","Defaults","to","`","0.25","`",".","q_sup","Desired","superior","quantile",",","must","be","between","0","and","1",".","Defaults","to","`","0.75","`",".","Examples","--","--","--","--",">",">",">","from","river","import","stats",">",">",">","rolling_iqr","=","stats.RollingIQR","(","...","q_inf=0.25",",","...","q_sup=0.75",",","...","window_size=101","...",")",">",">",">","for","i","in","range","(","0",",","1001",")",":","...","rolling_iqr.update","(","i",")","...","if","i","%","100","==","0",":","...","print","(","rolling_iqr.get","(",")",")","0.0","50.0","50.0","50.0","50.0","50.0","50.0","50.0","50.0","50.0","50.0"]
code: def __init__(self, window_size: int, q_inf=0.25, q_sup=0.75):
      if q_inf >= q_sup:
          raise ValueError("q_inf must be strictly less than q_sup")
      self.q_inf = q_inf
      self.q_sup = q_sup
      self._rolling_iqr = _rust_stats.RsRollingIQR(
          q_inf, q_sup, window_size
      )
      self.window_size_value = window_size
      self._is_updated = False
  
file_path: river/river/stats/iqr.py
imports: from __future__ import annotations
  from river import stats
  from river.stats import _rust_stats
label_desc: Use image node_id 1 to create a new RollingIQR object from inherited base classes: stats.base with example: obj = RollingIQR(window_size, q_inf, q_sup)