sksports.metrics
.intensity_factor_score¶
-
sksports.metrics.
intensity_factor_score
(activity_power, mpa)[source][source]¶ Intensity factor®.
The intensity factor® is the ratio of the normalized power® over the functional threshold power. Note that all our computation consider the maximum power aerobic for consistency. If you only have the functional threshold power, use
metrics.ftp2mpa
.Read more in the User Guide.
Parameters: - activity_power : Series
A Series containing the power data from an activity.
- mpa : float
Maximum power aerobic. Use
metrics.ftp2mpa
if you use the functional threshold power metric.
Returns: - score: float
Intensity factor.
References
[1] Allen, H., and A. Coggan. “Training and racing with a power meter.” VeloPress, 2012. Examples
>>> from sksports.datasets import load_fit >>> from sksports.io import bikeread >>> from sksports.metrics import intensity_factor_score >>> ride = bikeread(load_fit()[0]) >>> mpa = 400 >>> if_score = intensity_factor_score(ride['power'], mpa) >>> print('Intensity factor {:.2f} W'.format(if_score)) Intensity factor 0.72 W