Notebook
DD=t0 val=t2 L=5 res=1 allt=np.arange(DD[0],DD[-1]+res,res) fil=np.empty(np.size(allt)) s=L/2.355 for ind,t in enumerate(allt): diff=[abs(x-t) for x in DD] weight=[np.exp(-.5*x**2/s**2) if x <= 3*L else 0.0 for x in diff] fil[ind]=np.sum(weight*val)/np.sum(weight)