Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / trustDiscount

Function: trustDiscount()

ts
function trustDiscount(record, weights?): number;

Defined in: packages/memory/src/search/trust.ts:48

Rank-time trust multiplier for one record. 1 for first-party active facts (the common case - zero ranking change), 1 - quarantine for quarantined-but-included rows, 1 - foreignProvenance for foreign origin. Quarantine wins when both apply (same branch order as salience()).

Parameters

ParameterTypeDefault value
record{ provenance?: string | null; status?: string; }undefined
record.provenance?string | nullundefined
record.status?stringundefined
weightsSalienceWeightsDEFAULT_SALIENCE_WEIGHTS

Returns

number

Stable