src/dk/itu/pitlab/libeyetracking/core/Calibration.java
public static int resultToInt(CalibrationResult result) {
        if (result == null)
            return 0;
        else if (result.averageErrorDegree < 0.5)
            return 5;
        else if (result.averageErrorDegree < 0.7)
            return 4;
        else if (result.averageErrorDegree < 1)
            return 3;
        else if (result.averageErrorDegree < 1.5)
            return 2;
        else
            return 1;
    }
/**
     * Translate a result into a discrete value.
     *
     * @param result Result to translate
     * @return 0 means no calibration, 5 is best and 1 is worst.
     */
Translate a result into a discrete value.
@param result Result to translate
@return 0 means no calibration, 5 is best and 1 is worst.
Translate a result into a discrete value . @param result Result to translate @return 0 means no calibration 5 is best and 1 is worst .
public static int resultToInt(CalibrationResult result) {
        if (result == null)
            return 0;
        else if (result.averageErrorDegree < 0.5)
            return 5;
        else if (result.averageErrorDegree < 0.7)
            return 4;
        else if (result.averageErrorDegree < 1)
            return 3;
        else if (result.averageErrorDegree < 1.5)
            return 2;
        else
            return 1;
    }
public static int resultToInt ( CalibrationResult result ) { if ( result == null ) return 0 ; else if ( result . averageErrorDegree < 0.5 ) return 5 ; else if ( result . averageErrorDegree < 0.7 ) return 4 ; else if ( result . averageErrorDegree < 1 ) return 3 ; else if ( result . averageErrorDegree < 1.5 ) return 2 ; else return 1 ; }
Translate a result into a discrete value.
Translate a result into a discrete value .