Function computeRecencyBoost

  • Recency boost: exponential decay from recent events. Recent memories (within the half-life window) get a small bonus.

    boost = 1 + 0.2 ยท e^(-elapsed / halfLife)

    Parameters

    • lastAccessedAt: number
    • now: number
    • halfLifeMs: number = DEFAULT_DECAY_CONFIG.recencyHalfLifeMs

    Returns number