Class ReciprocalRankFuser
-
- All Implemented Interfaces:
public class ReciprocalRankFuserImplementation of Reciprocal Rank Fusion. A comprehensive explanation can be found here.
-
-
Constructor Summary
Constructors Constructor Description ReciprocalRankFuser()
-
Method Summary
Modifier and Type Method Description static List<Content>fuse(Collection<List<Content>> listsOfContents)Fuses multiple List<Content>into a singleList<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 singleList<Content>using the Reciprocal Rank Fusion (RRF) algorithm.-
-
Method Detail
-
fuse
static List<Content> fuse(Collection<List<Content>> listsOfContents)
Fuses multiple
List<Content>into a singleList<Content>using the Reciprocal Rank Fusion (RRF) algorithm with k=60.- Parameters:
listsOfContents- A Collection ofList<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 singleList<Content>using the Reciprocal Rank Fusion (RRF) algorithm.- Parameters:
listsOfContents- A Collection ofList<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.
-
-
-
-