4 ms·
I wrote a quick little program to sort of prove this to myself: https://play.golang.org/p/fITZrZgzTT7 https://play.golang.org/p/fITZrZgzTT7 While the average d
by jlhawn 9y ago
I wrote a quick little program to sort of prove this to myself: https://play.golang.org/p/fITZrZgzTT7 https://play.golang.org/p/fITZrZgzTT7
While the average difference in time between one record and the next is 10, the weighted average over the entire duration is 20.
- jlhawn 9y agoI updated it with some comments explaining what's going on: https://play.golang.org/p/xEnlcwBX4CN https://play.golang.org/p/xEnlcwBX4CN