class_docstr: Tracks the mean, variance and count of values.
class_docstr_tok: ["Tracks","the","mean",",","variance","and","count","of","values","."]
docstr: Updates the mean, var and count from a batch of samples.
docstr_tok: ["Updates","the","mean",",","var","and","count","from","a","batch","of","samples","."]
code: def update(self, x):
      """Updates the mean, var and count from a batch of samples."""
      batch_mean = np.mean(x, axis=0)
      batch_var = np.var(x, axis=0)
      batch_count = x.shape[0]
      self.update_from_moments(batch_mean, batch_var, batch_count)
  
file_path: gym/gym/wrappers/normalize.py
imports: import numpy
  import gym
label_desc: Use image node_id 2 for calling the RunningMeanStd obj's underlying member method code with example usage: obj.update(x) without return types