class_docstr: An environment wrapper for normalization.
  
  This wrapper normalizes action, and optionally observation and reward.
  
  Args:
      env (Environment): An environment instance.
      scale_reward (float): Scale of environment reward.
      normalize_obs (bool): If True, normalize observation.
      normalize_reward (bool): If True, normalize reward. scale_reward is
          applied after normalization.
      expected_action_scale (float): Assuming action falls in the range of
          [-expected_action_scale, expected_action_scale] when normalize it.
      flatten_obs (bool): Flatten observation if True.
      obs_alpha (float): Update rate of moving average when estimating the
          mean and variance of observations.
      reward_alpha (float): Update rate of moving average when estimating the
          mean and variance of rewards.
class_docstr_tok: ["An","environment","wrapper","for","normalization",".","This","wrapper","normalizes","action",",","and","optionally","observation","and","reward",".","Args",":","env","(","Environment",")",":","An","environment","instance",".","scale_reward","(","float",")",":","Scale","of","environment","reward",".","normalize_obs","(","bool",")",":","If","True",",","normalize","observation",".","normalize_reward","(","bool",")",":","If","True",",","normalize","reward",".","scale_reward","is","applied","after","normalization",".","expected_action_scale","(","float",")",":","Assuming","action","falls","in","the","range","of","[","-expected_action_scale",",","expected_action_scale","]","when","normalize","it",".","flatten_obs","(","bool",")",":","Flatten","observation","if","True",".","obs_alpha","(","float",")",":","Update","rate","of","moving","average","when","estimating","the","mean","and","variance","of","observations",".","reward_alpha","(","float",")",":","Update","rate","of","moving","average","when","estimating","the","mean","and","variance","of","rewards","."]
docstr: Compute normalized reward.
  
  Args:
      reward (float): Reward.
  
  Returns:
      float: Normalized reward.
docstr_tok: ["Compute","normalized","reward",".","Args",":","reward","(","float",")",":","Reward",".","Returns",":","float",":","Normalized","reward","."]
code: def _apply_normalize_reward(self, reward):
      """Compute normalized reward.
  
      Args:
          reward (float): Reward.
  
      Returns:
          float: Normalized reward.
  
      """
      self._update_reward_estimate(reward)
      return reward / (np.sqrt(self._reward_var) + 1e-8)
  
file_path: garage/src/garage/envs/normalized_env.py
imports: import akro
  import numpy
  from garage import EnvStep, Wrapper
label_desc: Use image node_id 7 for calling the NormalizedEnv obj's underlying member method code with example usage: obj._apply_normalize_reward(reward) and returns: unknown