Intent score per account with time decay (see https://www.onegtmlab.dev/glossary/intent-data).
Each signal has a weight and an age in days. It contributes weight * 0.5 ^ (age_days / half_life),
so a signal that is one half-life old counts for half its weight. The account score is the sum.
Summary
Functions
Value of one signal after age_days with the given half-life (in days).
Format scores as a text table.
Parse CSV text with columns account, signal, weight, age_days into signal maps.
Score every account. Returns maps with account, score, signals and newest signal age, highest score first.
Types
Functions
Value of one signal after age_days with the given half-life (in days).
Format scores as a text table.
Parse CSV text with columns account, signal, weight, age_days into signal maps.
@spec score([signal()], number()) :: [ %{ account: String.t(), score: float(), signals: pos_integer(), newest_days: number() } ]
Score every account. Returns maps with account, score, signals and newest signal age, highest score first.