Skip to main content

Function: applyEstimatedPowerToRecords()

function 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.