Table of Contents

Method Of

Namespace
MailFathom.Domain.Emails.Authorship
Assembly
MailFathom.Domain.dll

Of(IReadOnlyDictionary<MachineAuthorshipSignals, double>, IReadOnlyList<double>)

Derives the revision of a profile from the weighted signals and thresholds it judges by.

public static MachineAuthorshipProfileRevision Of(IReadOnlyDictionary<MachineAuthorshipSignals, double> weights, IReadOnlyList<double> thresholds)

Parameters

weights IReadOnlyDictionary<MachineAuthorshipSignals, double>

Each signal the profile weighs, paired with the weight it carries.

thresholds IReadOnlyList<double>

Each band boundary the profile reads the likelihood against.

Returns

MachineAuthorshipProfileRevision

The revision, which is None when the profile weighs nothing.

Remarks

The statements are sorted and joined with a separator none of them may contain, so the revision follows what a profile decides rather than the order its table happens to be written in. A profile weighing nothing assesses nothing and is deliberately indistinguishable from no profile at all, which is what a deployment that turned the assessment off has.

Exceptions

ArgumentNullException

Thrown when an argument is null.