open-nomie / nomie5

Nomie v5 Source Code
https://nomie.app
MIT License
562 stars 84 forks source link

Detect correlations with time shift #175

Open allo- opened 2 years ago

allo- commented 2 years ago

Finding correlations between trackers should allow for (small) time shifts.

Example:

Drinking a lot of coffee today cannot change the hours of sleep one logged in the morning, but it may affect the hours of sleep that one will log tomorrow. So the amount of coffee from one day should be correlated with the hours of sleep entered on the next day.

This may also be related to the issue, that "Tomorrow" should not start at 00:00. When using a sliding time window, the log entries for the coffees and the log entry with the amount of sleep in the morning would be in the same 24 hour window.