开发者

Calculate average of time intervals

开发者 https://www.devze.com 2023-02-14 20:46 出处:网络
how to calculate average 开发者_高级运维of time intervals in iphone developmentYou could just keep all time intervals you\'d ever seen, and average them each time. But a smarter way to do it is to use

how to calculate average 开发者_高级运维of time intervals in iphone development


You could just keep all time intervals you'd ever seen, and average them each time. But a smarter way to do it is to use a technique called "Running average", whereby as new measurements come in you calculate a new average based on the 'old' average and the new value. There's a mention of it here but it's not the clearest explanation.

0

精彩评论

暂无评论...
验证码 换一张
取 消