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).
1.0
0
e^(-snapshotAgeMs / halfLifeMs)
Age of the snapshot in milliseconds.
Half-life in milliseconds (default: DEFAULT_DECAY_HALF_LIFE_MS).
A decay factor in (0, 1].
(0, 1]
Compute the exponential temporal decay factor for a snapshot of the given age.
Returns
1.0for a fresh snapshot (age ≤ 0) and approaches0as the snapshot ages. The formula ise^(-snapshotAgeMs / halfLifeMs).