Method Assessed
- Namespace
- MailFathom.Domain.Emails.Authorship
- Assembly
- MailFathom.Domain.dll
Assessed(MachineAuthorshipBand, double, MachineAuthorshipSignals, MachineAuthorshipProfileRevision)
Records what one profile made of the signals it read out of a message's text.
public static MachineAuthorshipAssessment Assessed(MachineAuthorshipBand band, double likelihood, MachineAuthorshipSignals signals, MachineAuthorshipProfileRevision profileRevision)
Parameters
bandMachineAuthorshipBandThe coarse reading of the likelihood.
likelihooddoubleHow strongly the text read as machine written, from zero to one inclusive.
signalsMachineAuthorshipSignalsWhat the text carried.
profileRevisionMachineAuthorshipProfileRevisionThe weighting the reading was reached under.
Returns
- MachineAuthorshipAssessment
The assessment.
Remarks
The not-assessed band is refused here rather than accepted and normalized, because a reading that ran is a different statement from one that did not and only NotAssessed may make the second. A non-finite likelihood is refused for the reason a spam score is: it would compare false against every threshold whichever way the comparison is written, which reads as an ordinary message rather than as an assessment that failed.
Exceptions
- ArgumentOutOfRangeException
Thrown when the band says nothing was read, or when the likelihood is not a finite number within the scale.