This model is used to calculate the COP or the EER of a device. As the electrical power could get negative, a lower boundary is used to avoid division by zero. A moving average ensure a stable calculation of the COP or EER.