Private
Public Access
1
0

filtering speed/pace

This commit is contained in:
Sander Roosendaal
2020-06-07 09:51:25 +02:00
parent ea4ef1ff84
commit 1539c6e6d5
4 changed files with 10 additions and 2 deletions

View File

@@ -5458,6 +5458,14 @@ def interactive_multiple_compare_chart(ids,xparam,yparam,plottype='line',
ymean = group['y'].mean()
f = group['time'].diff().mean()
if f != 0 and not np.isnan(f):
windowsize = 2* (int(20000./(f))) + 1
else:
windowsize = 1
if windowsize >= 3 and windowsize < len(group['y']):
group['y'] = savgol_filter(group['y'],windowsize,3)
ylabel = Label(x=100,y=60+nrworkouts*20-20*cntr,
x_units='screen',y_units='screen',