lunch

package
v1.1.0 Latest Latest
Warning

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

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

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

func DetectLunchBreakNoonCentered

func DetectLunchBreakNoonCentered(halfHourCounts map[float64]int, utcOffset int) (lunchStart, lunchEnd, confidence float64)

DetectLunchBreakNoonCentered looks for lunch breaks in the 10am-2:30pm window SIMPLIFIED VERSION - just find ANY drop in activity.

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.

Jump to

Keyboard shortcuts

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