public WebResourceStatistics computeMark(WebResourceStatistics wrStatistics){
  float passed=wrStatistics.getNbOfPassed();
  if (passed == -1) {
    wrStatistics.setRawMark(Float.valueOf(-1));
    return wrStatistics;
  }
  float failed=wrStatistics.getNbOfFailed();
  float needMoreInfo=wrStatistics.getNbOfNmi();
  if (failed == 0 && passed == 0) {
    wrStatistics.setMark(Float.valueOf(0));
    return wrStatistics;
  }
  float ratioNMI=needMoreInfo / (passed + failed + needMoreInfo);
  float result=((1 - ratioNMI) * passed / (passed + failed) + ratioNMI * needMoreInfo / (passed + failed + needMoreInfo)) * 100f;
  wrStatistics.setMark(result);
  return wrStatistics;
}

public WebResourceStatistics computeMark ( WebResourceStatistics wrStatistics ) { float passed = wrStatistics . getNbOfPassed ( ) ; if ( passed == - 1 ) { wrStatistics . setRawMark ( Float . valueOf ( - 1 ) ) ; return wrStatistics ; } float failed = wrStatistics . getNbOfFailed ( ) ; float needMoreInfo = wrStatistics . getNbOfNmi ( ) ; if ( failed == 0 && passed == 0 ) { wrStatistics . setMark ( Float . valueOf ( 0 ) ) ; return wrStatistics ; } float ratioNMI = needMoreInfo / ( passed + failed + needMoreInfo ) ; float result = ( ( 1 - ratioNMI ) * passed / ( passed + failed ) + ratioNMI * needMoreInfo / ( passed + failed + needMoreInfo ) ) * 100f ; wrStatistics . setMark ( result ) ; return wrStatistics ; }
this method compute the mark of the audit . here is the algorithm formula : ( ( 1 - rationmi ) * passed / ( passed + failed ) + rationmi needmoreinfo / ( passed + failed + needmoreinfo ) ) * 100f where rationmi = needmoreinfo / ( passed + failed + needmoreinfo )
