FP-Devicer - v2.0.2
    Preparing search index...

    Function computeTemporalDecayFactor

    • Compute the exponential temporal decay factor for a snapshot of the given age.

      Returns 1.0 for a fresh snapshot (age ≤ 0) and approaches 0 as the snapshot ages. The formula is e^(-snapshotAgeMs / halfLifeMs).

      Parameters

      • snapshotAgeMs: number

        Age of the snapshot in milliseconds.

      • halfLifeMs: number = DEFAULT_DECAY_HALF_LIFE_MS

        Half-life in milliseconds (default: DEFAULT_DECAY_HALF_LIFE_MS).

      Returns number

      A decay factor in (0, 1].