Class BestAtKScorer


  • public class BestAtKScorer
    extends MetricScorer
    Author:
    vdang
    • Constructor Detail

      • BestAtKScorer

        public BestAtKScorer()
      • BestAtKScorer

        public BestAtKScorer​(int k)
    • Method Detail

      • maxToK

        public int maxToK​(RankList rl,
                          int k)
        Return the position of the best object (e.g. docs with highest degree of relevance) among objects in the range [0..k] NOTE: If you want best-at-k (i.e. best among top-k), you need maxToK(rl, k-1)
        Parameters:
        l - The rank list.
        k - The last position of the range.
        Returns:
        The index of the best object in the specified range.
      • name

        public java.lang.String name()
        Specified by:
        name in class MetricScorer