LocoKit
LocoKit copied to clipboard
modeActivityType should take duration into account
Otherwise it’s kinda wrong, and sometimes mega wrong.
Different activity types are sampled at different rates (ie walking, running, cycling sampled at higher frequency, due to Apple Health workout requirements). So a mode based on sample count alone can easily pick the wrong type.