@Test public void getPerfomanceMeasuresByPercentageB_for2RetrievedItems() { String documentTitle = "someDocument"; List<Integer> truePositives = new ArrayList<Integer>(); truePositives.add(1); truePositives.add(1); int goldCount = 2; DocumentPerformanceResult result = new DocumentPerformanceResult( documentTitle, truePositives, goldCount); PerformanceMeasures measuresFor1RetrievedItem = result .getPerformanceMeasures(0.5D); PerformanceMeasures measuresFor2RetrievedItems = result .getPerformanceMeasures(1D); assertEquals(1, measuresFor1RetrievedItem.getPrecision(), EPSILON); assertEquals(0.5, measuresFor1RetrievedItem.getRecall(), EPSILON); assertEquals(2D / 3D, measuresFor1RetrievedItem.getFMeasure(), EPSILON); assertEquals(1, measuresFor2RetrievedItems.getPrecision(), EPSILON); assertEquals(1, measuresFor2RetrievedItems.getRecall(), EPSILON); assertEquals(1, measuresFor2RetrievedItems.getFMeasure(), EPSILON); }
public PerformanceMeasures getPerformanceMeasures(double retrievedPercentage) { return getPerformanceMeasures((int) Math .floor((getRetrievedCount() * retrievedPercentage))); }
DocumentPerformanceResult implements Serializable { public PerformanceMeasures getPerformanceMeasures(double retrievedPercentage) { return getPerformanceMeasures((int) Math .floor((getRetrievedCount() * retrievedPercentage))); } }
DocumentPerformanceResult implements Serializable { public PerformanceMeasures getPerformanceMeasures(double retrievedPercentage) { return getPerformanceMeasures((int) Math .floor((getRetrievedCount() * retrievedPercentage))); } DocumentPerformanceResult(String documentTitle,
			List<Integer> truePositiveCounts, int goldCount); }
DocumentPerformanceResult implements Serializable { public PerformanceMeasures getPerformanceMeasures(double retrievedPercentage) { return getPerformanceMeasures((int) Math .floor((getRetrievedCount() * retrievedPercentage))); } DocumentPerformanceResult(String documentTitle,
			List<Integer> truePositiveCounts, int goldCount); PerformanceMeasures getPerformanceMeasures(double retrievedPercentage); PerformanceMeasures getPerformanceMeasures(int retrievedItems); int getRetrievedCount(); String getDocumentTitle(); int getGoldCount(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
DocumentPerformanceResult implements Serializable { public PerformanceMeasures getPerformanceMeasures(double retrievedPercentage) { return getPerformanceMeasures((int) Math .floor((getRetrievedCount() * retrievedPercentage))); } DocumentPerformanceResult(String documentTitle,
			List<Integer> truePositiveCounts, int goldCount); PerformanceMeasures getPerformanceMeasures(double retrievedPercentage); PerformanceMeasures getPerformanceMeasures(int retrievedItems); int getRetrievedCount(); String getDocumentTitle(); int getGoldCount(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }