class_docstr: Running mean calculator.
  
  This class can be used to calculate the mean of elements from a
  list, tuple, iterable or any other data source. The mean is
  calculated on the fly without explicitly summing the values,
  so it can be used for data sets with arbitrary item count. Also
  capable of returning the standard deviation (also calculated on
  the fly)
docstr: RunningMean.add(values)
  
  Adds the values in the given iterable to the elements from
  which we calculate the mean. Can also accept a single number.
  The left shift (C{<<}) operator is aliased to this function,
  so you can use it to add elements as well:
  
    >>> rm=RunningMean()
    >>> rm << [1,2,3,4]
    >>> rm.result               # doctest:+ELLIPSIS
    (2.5, 1.290994...)
  
  @param values: the element(s) to be added
  @type values: iterable
docstr_tok: ["RunningMean.add","(","values",")","Adds","the","values","in","the","given","iterable","to","the","elements","from","which","we","calculate","the","mean",".","Can","also","accept","a","single","number",".","The","left","shift","(","C","{","<","<","}",")","operator","is","aliased","to","this","function",",","so","you","can","use","it","to","add","elements","as","well",":",">",">",">","rm=RunningMean","(",")",">",">",">","rm","<","<","[","1,2,3,4","]",">",">",">","rm.result","#","doctest",":","+ELLIPSIS","(","2.5",",","1.290994","...",")","@","param","values",":","the","element","(","s",")","to","be","added","@","type","values",":","iterable"]
code: def add_many(self, values):
      """RunningMean.add(values)
  
      Adds the values in the given iterable to the elements from
      which we calculate the mean. Can also accept a single number.
      The left shift (C{<<}) operator is aliased to this function,
      so you can use it to add elements as well:
  
        >>> rm=RunningMean()
        >>> rm << [1,2,3,4]
        >>> rm.result               # doctest:+ELLIPSIS
        (2.5, 1.290994...)
  
      @param values: the element(s) to be added
      @type values: iterable"""
      try:
          iterator = iter(values)
      except TypeError:
          iterator = iter([values])
      for value in iterator:
          self.add(value)
  
imports: import math
label_desc: Use image node_id 3 for calling the RunningMean obj's underlying member method code with example usage: obj.add_many(values) without return types