Linear trend function.
f = poly1(x)
m*n matrix with design sites
[1 S]
derivatives(not implemented);
First order polynomial trend function.
// 1D example // zero noise x_bound=[-2; 2]; X=(linspace(x_bound(1),x_bound(2),4))'; // Points of experiment YExp=sin(X);// Response values noise=0;theta=1; [kmodel] =km(X,YExp,poly1,'gaussian',theta,noise); [kmodel] =km(X,YExp,1,'gaussian',theta,noise);