get_window_stats
Computes detailed stats for any time window of a Rouvy activity: split metrics, peak power efforts, first-half vs second-half comparison, and HR:power decoupling to reveal pacing and fitness changes.
Instructions
Stats for one stretch of an Activity (e.g. a climb from 20:00 to 35:00), from its per-second Activity file: the same stats as one split of get_activity_intervals, plus the best efforts (peak powers for the durations that fit), the first half vs the second half, and HR:power decoupling between them. %FTP uses the FTP from the Activity snapshot. A note says why any stat is left out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_sec | Yes | Window end, in seconds from the start (after start_sec). | |
| start_sec | Yes | Window start, in seconds from the start of the Activity. | |
| activity_id | Yes | An Activity id as returned by list_activities. |