StaticgenerateStaticmergeStaticreRegenerates event-level stats from the current in-memory event state.
Important behavior:
event.clearStats()).Regeneration model:
Interaction with generateStatsForAll(event):
generateStatsForAll calls activity generation first (generateMissingStreamsAndStatsForActivity),
then calls this method.Distance behavior:
Event aggregation and regeneration. Generated homogeneous Diving-group event summaries omit terrain ascent/descent, altitude min/max/avg, and grade min/max/avg; mixed event summaries aggregate those metrics only from their non-diving activities.