Class ReciprocalRankFuser

  • All Implemented Interfaces:

    
    public class ReciprocalRankFuser
    
                        

    Implementation of Reciprocal Rank Fusion. A comprehensive explanation can be found here.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static List<Content> fuse(Collection<List<Content>> listsOfContents) Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm with k=60.
      static List<Content> fuse(Collection<List<Content>> listsOfContents, int k) Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReciprocalRankFuser

        ReciprocalRankFuser()
    • Method Detail

      • fuse

         static List<Content> fuse(Collection<List<Content>> listsOfContents)

        Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm with k=60.

        Parameters:
        listsOfContents - A Collection of List<Content> to be fused together.
        Returns:

        A single List<Content>, the result of the fusion.

      • fuse

         static List<Content> fuse(Collection<List<Content>> listsOfContents, int k)

        Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm.

        Parameters:
        listsOfContents - A Collection of List<Content> to be fused together.
        k - A ranking constant used to control the influence of individual ranks from different ranked lists being combined.
        Returns:

        A single List<Content>, the result of the fusion.