module DataDecayEstimator

Overview

Contact-data decay: records go stale (job change, closed domain, bounced address) at a yearly rate you supply.

Defined in:

decay.cr

Constant Summary

VERSION = "1.0.0"

Class Method Summary

Class Method Detail

def self.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).


[View source]
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).


[View source]
def self.stale_count(records : Int32, annual_decay_pct : Float64, months : Int32) : Int32 #

[View source]