module DataDecayEstimator
Overview
Contact-data decay: records go stale (job change, closed domain, bounced address) at a yearly rate you supply.
Defined in:
decay.crConstant Summary
-
VERSION =
"1.0.0"
Class Method Summary
-
.fresh_share(annual_decay_pct : Float64, months : Int32) : Float64
Share of records still good after
months, compounding the yearly decay rate (0 to 100 percent). -
.months_until_stale(annual_decay_pct : Float64, limit_pct : Float64) : Int32 | Nil
First whole month in which the stale share reaches
limit_pct, or nil when it never does (rate 0). - .stale_count(records : Int32, annual_decay_pct : Float64, months : Int32) : Int32
Class Method Detail
def self.months_until_stale(annual_decay_pct : Float64, limit_pct : Float64) : Int32 | Nil
#
First whole month in which the stale share reaches limit_pct, or nil when it never does (rate 0).
def self.stale_count(records : Int32, annual_decay_pct : Float64, months : Int32) : Int32
#