code: def _update_noise(self, peak_num):
          
          i = self.peak_inds_i[peak_num]
          self.noise_amp_recent = (0.875*self.noise_amp_recent
                                   + 0.125*self.sig_i[i])
          return
docs: Update live noise parameters