This weighted-time DAA uses a 144-block sliding window and applies two weights to the individual inter-block times before retargeting.
Difficulty weight
To correct for the difficulty at which the block was mined, its time is multiplied by the ratio of its target to the final block's target.
Recency weight
Each blocktime is weighted by its sequence within the window, starting at 1 with the oldest block.