filtering speed/pace
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user