mantis-rxcontrol/src/main/java/io/mantisrx/control/controllers/ErrorComputer.java [80:87]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static double loss(double setPoint, double observed, double lowerRope, double upperRope) {
        if (observed > setPoint + upperRope) {
            return (setPoint + upperRope) - observed;
        } else if (observed < setPoint - lowerRope) {
            return (setPoint - lowerRope) - observed;
        }
        return 0.0;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



mantis-runtime-autoscaler-api/src/main/java/io/mantisrx/server/worker/jobmaster/control/utils/ErrorComputer.java [75:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static double loss(double setPoint, double observed, double lowerRope, double upperRope) {
        if (observed > setPoint + upperRope) {
            return (setPoint + upperRope) - observed;
        } else if (observed < setPoint - lowerRope) {
            return (setPoint - lowerRope) - observed;
        }
        return 0.0;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



