Skip to main content

applyEstimatedPowerToRecords

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/data/processing/estimateCyclingPower / applyEstimatedPowerToRecords

Function: applyEstimatedPowerToRecords()

applyEstimatedPowerToRecords(params: { recordMesgs: FitRecord[]; sessionMesgs?: readonly FitRecord[]; settings: PowerEstimationSettings; }): PowerEstimationResult

Defined in: utils/data/processing/estimateCyclingPower.ts:45

Estimate power per record and attach it to each record as estimatedPower.

Parameters​

params​

Records, optional session metadata, and estimation settings.

recordMesgs​

FitRecord[]

sessionMesgs?​

readonly FitRecord[]

settings​

PowerEstimationSettings

Returns​

PowerEstimationResult

Estimated power values and whether they were applied.