periodic Mean
fun periodicMean(zonedDateTimes: List<ZonedDateTime>, references: List<ZonedDateTime>, reference: LocalDateTime): ZonedDateTime
This function calculates the period mean of a series of ZonedDateTime. Given this is a periodic mean and not a full mean the result is not a ZonedDateTime but a LocalDateTime. This function only cares about the local
time when calculating the mean. You can ue this to calculate for example the average wake up time of a person given a list of wake up times.
Return
a LocalDateTime corresponding to the average (note the seed of the local date time is Instant.now)
Parameters
zoned Date Times
list of ZonedDateTimes to average