float val = input.Pop(); aveHi = max(0.9*aveHi, val); aveLo = min(1.1*aveLo, val); if (aveHi - aveLo < QUAL_BAD_THRESHOLD && !booosterOn) { boosterSwitch.Init(true, BEST_EFFORT);
float val = input.PopFloat(); aveHi = java.lang.Math.max(0.9f*aveHi, val); aveLo = java.lang.Math.min(1.1f*aveLo, val); if (aveHi - aveLo < QUAL_BAD_THRESHOLD && !boosterOn) {
   public void Work() {      float val = input.Pop();      aveHi = max(0.9*aveHi, val);      aveLo = min(1.1*aveLo, val);      if (aveHi - aveLo < QUAL_BAD_THRESHOLD && !booosterOn) {         boosterSwitch.Init(true, BEST_EFFORT);         boosterOn = true;      }      if(aveHi - aveLo > QUAL_GOOD_THRESHOLD & boosterOn) {         boosterSwitch.Init(false, BEST_EFFORT);         boosterOn = false;      }      output.Push(val);   }