Class RetrievalQualityImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.RetrievalQualityImpl
- All Implemented Interfaces:
RetrievalQuality
Class to calculate the retrieval quality
- Author:
- Gilbert Mueller
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.retrieval.RetrievalQuality
RetrievalQuality.QualityCriterion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
calculateRetrievalQuality
(RetrievalQuality.QualityCriterion qualityCriterion, RetrievalResultList originalRetrieval, RetrievalResultList particularRetrieval) Calculates the retrieval quality a particular retrieval (particularRetrieval).
-
Constructor Details
-
RetrievalQualityImpl
public RetrievalQualityImpl()
-
-
Method Details
-
calculateRetrievalQuality
public double calculateRetrievalQuality(RetrievalQuality.QualityCriterion qualityCriterion, RetrievalResultList originalRetrieval, RetrievalResultList particularRetrieval) Description copied from interface:RetrievalQuality
Calculates the retrieval quality a particular retrieval (particularRetrieval).- Specified by:
calculateRetrievalQuality
in interfaceRetrievalQuality
- Parameters:
qualityCriterion
- (enum value to define the quality criterion that should be used)originalRetrieval
- (retrieval which has no missing cases and cases are correctly ordered)particularRetrieval
- (retrieval whose quality should by calculated)- Returns:
- the retrieval quality of the particular retrieval
-