Table of Contents

Method Score

Namespace
MailFathom.Application.Emails.Search
Assembly
MailFathom.Application.dll

Score<TDocument>(IReadOnlyList<TDocument>, IReadOnlyList<TDocument>)

Scores every document either ranking placed by the places it holds in them, and orders nothing.

public static IReadOnlyDictionary<TDocument, float> Score<TDocument>(IReadOnlyList<TDocument> lexicalRanking, IReadOnlyList<TDocument> semanticRanking) where TDocument : notnull

Parameters

lexicalRanking IReadOnlyList<TDocument>

The lexical ranking, best first.

semanticRanking IReadOnlyList<TDocument>

The semantic ranking, nearest first.

Returns

IReadOnlyDictionary<TDocument, float>

Each document either ranking returned, with its fused score.

Type Parameters

TDocument

What the two rankings rank, compared by its own equality.

Remarks

The arithmetic Fuse(IReadOnlyList<RankedEmailCandidate>, IReadOnlyList<RankedEmailCandidate>, int) applies to mail, published for a ranking of anything else. Ordering is left to the caller, because what settles a tie is a property of what is ranked rather than of fusion: the timeline for mail, a conversation's own recency for the Agent's history. A document repeated within one ranking scores once, at its best place there.

Exceptions

ArgumentNullException

Thrown when either ranking is null.