Class RetrievalQualityImpl

java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.RetrievalQualityImpl
All Implemented Interfaces:
RetrievalQuality

public class RetrievalQualityImpl extends Object implements RetrievalQuality
Class to calculate the retrieval quality
Author:
Gilbert Mueller
  • 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 interface RetrievalQuality
      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