Skip to content

@kaiord/core


@kaiord/core / estimateExpectedActivityKcal

Function: estimateExpectedActivityKcal() ​

estimateExpectedActivityKcal(input): number

Defined in: packages/core/src/application/energy/expected-activity-kcal.ts:82

Estimate a planned workout's activity kcal via the first applicable tier (power → running-distance → MET). Result is rounded to integer kcal.

Parameters ​

input ​

ExpectedActivityKcalInput

Returns ​

number

Throws ​

RangeError when required inputs are not positive and finite, or when an optional input is present but not non-negative and finite.