class_docstr: The standalone mean metric.
  
  This utility metric is a general purpose metric that can be used to keep
  track of the mean of a sequence of values.
class_docstr_tok: ["The","standalone","mean","metric",".","This","utility","metric","is","a","general","purpose","metric","that","can","be","used","to","keep","track","of","the","mean","of","a","sequence","of","values","."]
docstr: Update the running mean given the value.
  
  The value can be weighted with a custom value, defined by the `weight`
  parameter.
  
  :param value: The value to be used to update the mean.
  :param weight: The weight of the value. Defaults to 1.
  :return: None.
docstr_tok: ["Update","the","running","mean","given","the","value",".","The","value","can","be","weighted","with","a","custom","value",",","defined","by","the","`","weight","`","parameter",".",":","param","value",":","The","value","to","be","used","to","update","the","mean",".",":","param","weight",":","The","weight","of","the","value",".","Defaults","to","1.",":","return",":","None","."]
code: def update(
      self, value: SupportsFloat, weight: SupportsFloat = 1.0
  ) -> None:
      """
      Update the running mean given the value.
  
      The value can be weighted with a custom value, defined by the `weight`
      parameter.
  
      :param value: The value to be used to update the mean.
      :param weight: The weight of the value. Defaults to 1.
      :return: None.
      """
      value = float(value)
      weight = float(weight)
      self.summed += value * weight
      self.weight += weight
  
file_path: avalanche/avalanche/evaluation/metrics/mean.py
imports: from typing import SupportsFloat
  from avalanche.evaluation import Metric
label_desc: Use image node_id 2 for calling the Mean obj's underlying member method code with example usage: obj.update(value, weight) without return types