You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 8, 2025. It is now read-only.
As you can see from the trivial example above, temperature data have been recorded for each of five timestamps (100, 101, 102, 103, and 104). However, distance information has not been recorded for timestamps 102 and 103.
181
179
182
180
If *fix_data* includes 'distance', then the class will attempt to insert data into the distance array with the indexes 102 and 103. Values are determined using a linear interpolation between indexes 101(4.01) and 104(10.88).
$pFFA->power_metrics($functional_threshold_power); // e.g. 312
280
-
$pFFA->critical_power($time_periods); // e.g. 300 or [300, 600, 900, 1200]
277
+
$pFFA->powerMetrics($functional_threshold_power); // e.g. 312
278
+
$pFFA->criticalPower($time_periods); // e.g. 300 or [300, 600, 900, 1200]
281
279
```
282
280
**Power metrics:**
283
281
* Average Power
@@ -289,7 +287,7 @@ $pFFA->critical_power($time_periods); // e.g. 300 or [300, 600, 900, 1200]
289
287
290
288
**Critical Power** (or Best Effort) is the highest average power sustained for a specified period of time within the activity. You can supply a single time period (in seconds), or an array or time periods.
291
289
292
-
Note that ```$pFFA->critical_power``` and some power metrics (Normalised Power, Variability Index, Intensity Factor, Training Stress Score) will use the [PHP Trader](http://php.net/manual/en/book.trader.php) extension if it is loaded on the server. If the extension is not loaded then it will use the built-in Simple Moving Average algorithm, which is far less performant particularly for larger files!
290
+
Note that ```$pFFA->criticalPower``` and some power metrics (Normalised Power, Variability Index, Intensity Factor, Training Stress Score) will use the [PHP Trader](http://php.net/manual/en/book.trader.php) extension if it is loaded on the server. If the extension is not loaded then it will use the built-in Simple Moving Average algorithm, which is far less performant particularly for larger files!
293
291
294
292
295
293
A demo of power analysis is available [here](http://www.adriangibbons.com/phpFITFileAnalysis-demo/analysis_power.php).
0 commit comments