integrate

Function integrate 

Source
pub fn integrate(
    samples: &[PowerSample],
    start: Instant,
    end: Instant,
) -> Option<EnergyWindow>
Expand description

2026-09-26: Integrate the readings inside [start, end], both ends included.

None when end <= start or no reading falls inside, so a window with no evidence never reports zero joules.