@Test public void test() { Assert.assertThat(perfCounter.getAverageRPrecision(), CoreMatchers.is(((2.0 / 3.0) + 0.6) / 2)); }
public double getAverageRPrecision() { double rPrecisionSum = 0.0; List<String> files = new ArrayList<String>(getRegisteredFiles()); for (String fileName : files) { rPrecisionSum += this.getFileRPrecision(fileName); } return rPrecisionSum / files.size(); }
RprecisionKeyphraseCounter extends AbstractKeyphraseCounter { public double getAverageRPrecision() { double rPrecisionSum = 0.0; List<String> files = new ArrayList<String>(getRegisteredFiles()); for (String fileName : files) { rPrecisionSum += this.getFileRPrecision(fileName); } return rPrecisionSum / files.size(); } }
RprecisionKeyphraseCounter extends AbstractKeyphraseCounter { public double getAverageRPrecision() { double rPrecisionSum = 0.0; List<String> files = new ArrayList<String>(getRegisteredFiles()); for (String fileName : files) { rPrecisionSum += this.getFileRPrecision(fileName); } return rPrecisionSum / files.size(); }  }
RprecisionKeyphraseCounter extends AbstractKeyphraseCounter { public double getAverageRPrecision() { double rPrecisionSum = 0.0; List<String> files = new ArrayList<String>(getRegisteredFiles()); for (String fileName : files) { rPrecisionSum += this.getFileRPrecision(fileName); } return rPrecisionSum / files.size(); }  void setRPrecision(String fileName, double rprecision); double getAverageRPrecision(); double getFileRPrecision(String fileName); }
RprecisionKeyphraseCounter extends AbstractKeyphraseCounter { public double getAverageRPrecision() { double rPrecisionSum = 0.0; List<String> files = new ArrayList<String>(getRegisteredFiles()); for (String fileName : files) { rPrecisionSum += this.getFileRPrecision(fileName); } return rPrecisionSum / files.size(); }  void setRPrecision(String fileName, double rprecision); double getAverageRPrecision(); double getFileRPrecision(String fileName);  }