Name
poly2 — Quadratic trend function.
Calling Sequence
f = poly2(x)
[f, df] = poly2(x)
Parameters
- x:
m*n matrix with design sites
- f:
[1 S S(:,1)*S S(:,2)S(:,2:n) ... S(:,n)^2]
- df:
derivatives(not implemented);
Description
Second order polynomial trend function.
Examples
// 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,poly2,'gaussian',theta,noise);
[kmodel] =km(X,YExp,2,'gaussian',theta,noise);
Authors
Janis Janusevskis, 3MI/EMSE |