Stumbled upon this article in your "ten pieces" archive email newsletter. Thank you!
I don't have any programming insight or language implementation advice based on all of this.
JavaScript and other programming languages provide a function to get "milliseconds since the epoch" for any timestamp. So, we could simply call that function for each timestamp, add them up and find the average.
Stumbled upon this article in your "ten pieces" archive email newsletter. Thank you!
JavaScript and other programming languages provide a function to get "milliseconds since the epoch" for any timestamp. So, we could simply call that function for each timestamp, add them up and find the average.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime
On a related note, calculating circular mean is also an interesting topic: https://en.wikipedia.org/wiki/Circular_mean