class_docstr: Computes the interquartile range.
  
  Parameters
  ----------
  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
  
  >>> iqr = stats.IQR(q_inf=0.25, q_sup=0.75)
  
  >>> for i in range(0, 1001):
  ...     iqr.update(i)
  ...     if i % 100 == 0:
  ...         print(iqr.get())
  0.0
  50.0
  100.0
  150.0
  200.0
  250.0
  300.0
  350.0
  400.0
  450.0
  500.0
class_docstr_tok: ["Computes","the","interquartile","range",".","Parameters","--","--","--","--","--","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",">",">",">","iqr","=","stats.IQR","(","q_inf=0.25",",","q_sup=0.75",")",">",">",">","for","i","in","range","(","0",",","1001",")",":","...","iqr.update","(","i",")","...","if","i","%","100","==","0",":","...","print","(","iqr.get","(",")",")","0.0","50.0","100.0","150.0","200.0","250.0","300.0","350.0","400.0","450.0","500.0"]
code: def update(self, x):
      self._iqr.update(x)
      if not self._is_updated:
          self._is_updated = True
  
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 3 for calling the IQR obj's underlying member method code with example usage: obj.update(x) without return types