Algorithm 1 Algorithm for recalculation of power values when changing sampling base from time to distance.
Data: TS:= array of T time-ordered samples [[D, Pacc, HR]t = 1, |
… |
[D, Pacc, HR]t = T] |
Result: DS:= array of D distance-ordered samples [[T, P, HR]d = 1, |
… |
[T, P, HR]d = D] |
1 round D values in TS to full integers; |
2 time at:= list of first of time instances t for each group of identical D values in TS; |
3 DS:= list of means of Pacc, HR for each group of identical D values in TS; |
4 DS.T:= time.at; |
5 resample DS to 1 m; |
6 interpolate all columns in DS; |
7 resample DS to 10 m; |
8 DS.P:= DS.Pacc - shift(DS.Pacc, 1); |