class_docstr: Computes central moments using Welford's algorithm.
  
  Attributes
  ----------
  count : stats.Count
  delta: float
  sum_delta : float
      Mean of sum of differences.
  M1 : float
      Sums of powers of differences from the mean order 1.
  M2 : float)
      Sums of powers of differences from the mean order 2.
  M3 : float
      Sums of powers of differences from the mean order 3.
  M4 : float
      Sums of powers of differences from the mean order 4.
  
  References
  ----------
  [^1]: [Wikipedia article on algorithms for calculating variance](https://www.wikiwand.com/en/Algorithms_for_calculating_variance#/Covariance)
class_docstr_tok: ["Computes","central","moments","using","Welford","'s","algorithm",".","Attributes","--","--","--","--","--","count",":","stats.Count","delta",":","float","sum_delta",":","float","Mean","of","sum","of","differences",".","M1",":","float","Sums","of","powers","of","differences","from","the","mean","order","1",".","M2",":","float",")","Sums","of","powers","of","differences","from","the","mean","order","2",".","M3",":","float","Sums","of","powers","of","differences","from","the","mean","order","3",".","M4",":","float","Sums","of","powers","of","differences","from","the","mean","order","4",".","References","--","--","--","--","--","[","^1","]",":","[","Wikipedia","article","on","algorithms","for","calculating","variance","]","(","https",":","\/\/www.wikiwand.com\/en\/Algorithms_for_calculating_variance","#","\/Covariance",")"]
code: def _update_m1(self, x):
      self.M1 = (
          (x - self.sum_delta) * self.delta * (self.count.get() - 1)
      )
      return self
  
file_path: river/river/stats/moments.py
imports: from __future__ import annotations
  from river import stats
label_desc: Use image node_id 4 for calling the CentralMoments obj's underlying member method code with example usage: obj._update_m1(x) and returns: self