@pond-ts/fit API Reference
    Preparing search index...

    Function bestAveragePower

    • The highest average power held for seconds inside any one of the spans (a window never crosses from one span into the next). Time-weighted on a one-second grid: each sample's power covers the time just before it, up to 5 s; beyond that a gap counts as 0 W, so a spike after a dropout isn't a minute's effort. moving: the moving time alone, on a clock that stops while stopped. undefined when no span is that long, or there's no power.

      Not the same rule as powerBestEfforts / the power curve, which clamp a gap's time (to 10 s) and hold the sample's power over it; here only 5 s of a gap carries power. The stricter rule is for laps and intervals, where a dropout followed by a spike would otherwise pass for a minute's effort.

      Parameters

      Returns number | undefined