Skip to content

@kaiord/core


@kaiord/core / percentFtpToZone

Function: percentFtpToZone()

percentFtpToZone(percent): PowerZone

Defined in: packages/core/src/domain/zones/power-zones.ts:73

Inverse of zoneToPercentFtp: map a percent-FTP value back to the zone whose canonical percent equals it exactly.

Round-trip identity: percentFtpToZone(zoneToPercentFtp(z)) === z for every z in [1, 7].

Parameters

percent

number

Returns

PowerZone

Throws

RangeError when percent does not exactly match any of the seven canonical band values (55, 75, 90, 105, 120, 150, 200). This function is intentionally a discrete inverse, not a nearest-band classifier — adapters that need fuzzy classification should layer that policy on top.