Documentation
¶
Overview ¶
Package lunch provides detection of lunch break patterns in activity data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalLunchPattern ¶
type GlobalLunchPattern struct {
StartUTC float64
EndUTC float64
Confidence float64
DropPercent float64
}
GlobalLunchPattern represents a detected lunch pattern in UTC time.
func FindBestGlobalLunchPattern ¶
func FindBestGlobalLunchPattern(halfHourCounts map[float64]int) GlobalLunchPattern
FindBestGlobalLunchPattern finds the best lunch pattern globally in UTC time This is timezone-independent and looks for the strongest activity drop + recovery pattern.
Click to show internal directories.
Click to hide internal directories.