Skip to main content

compute_weekly_heatmap

Function compute_weekly_heatmap 

Source
pub fn compute_weekly_heatmap(
    samples: &[SleepNightSample],
    target_min: f64,
) -> SleepHeatmapReport
Expand description

Build a 7-cell heatmap from the most recent samples (newest last).