sleep

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

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

func DetectSleepPeriodsWithHalfHours(halfHourCounts map[float64]int) []float64

DetectSleepPeriodsWithHalfHours identifies sleep periods using 30-minute resolution data. It requires at least 30 minutes of buffer between activity and sleep.

func FindQuietHours

func FindQuietHours(hourCounts map[int]int) []int

FindQuietHours identifies hours with minimal activity.

func FindSleepHours

func FindSleepHours(hourCounts map[int]int) []int

FindSleepHours identifies sleep hours from hourly activity data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL