Skip to main content

Module stats

Module stats 

Source

Structs§

AllStatsVisitor
Single-pass visitor that collects all stats.
ExerciseStats
ExerciseVolumeCalculator
Volume for a specific exercise name only.
RepCounter
Sums all reps across all sets.
SetCounter
Counts all Set (Leaf) nodes in the tree.
TreeStats
Combined stats result – computed in a single tree walk.
VolumeCalculator
Sums weight * reps across all sets, normalised to kg.

Functions§

compute_tree_stats
Compute all stats for a workout tree in a single pass.
estimate_1rm
Epley formula: 1RM = weight * (1 + reps / 30)