def var(x): """ Creates a polynomial that describes the kernel width """ p=[0.2,0.02] return np.polyval(p,x) #x sampling: