docstr: Update the estimate.
  
  Parameters
  ----------
  new_val: float
      new observated value of estimated quantity.
docstr_tok: ["Update","the","estimate",".","Parameters","--","--","--","--","--","new_val",":","float","new","observated","value","of","estimated","quantity","."]
code: def update(self, new_val):
      """Update the estimate.
  
      Parameters
      ----------
      new_val: float
          new observated value of estimated quantity.
      """
      if self._value is None:
          self._value = new_val
      else:
          self._value = (
              self._gamma * self._value + (1.0 - self._gamma) * new_val
          )
  
imports: import gym
  import numpy
  import os
  import pickle
  import random
  import tempfile
  import zipfile
label_desc: Use image node_id 2 for calling the RunningAvg obj's underlying member method code with example usage: obj.update(new_val) without return types