Documentation
¶
Overview ¶
Package sleep provides detection of sleep patterns in activity data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectSleepPeriodsWithHalfHours ¶
DetectSleepPeriodsWithHalfHours identifies sleep periods using 30-minute resolution data. A rest period is defined as: - 4+ hours of continuous buckets with 0-2 events - Ends when we hit two consecutive buckets with 3+ events - Maximum 12 hours per rest period. - Strongly prefers nighttime periods (starting search at 9pm local time).
func DetectSleepPeriodsWithOffset ¶ added in v1.1.0
DetectSleepPeriodsWithOffset identifies sleep periods for a specific timezone offset. The offset parameter adjusts the search to look for sleep at appropriate local times.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.