<< logLL krisp toolbox poly1 >>

krisp toolbox >> krisp toolbox > poly0

poly0

Constant trend function.

Calling Sequence

f = poly0(x)

Parameters

x:

m*n matrix with design sites

f:

ones(m,1)

df:

derivatives(not implemented);

Description

Zero order polynomial regression 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,poly0,'gaussian',theta,noise);
[kmodel] =km(X,YExp,0,'gaussian',theta,noise);

See also

Authors

Bibliography

<< logLL krisp toolbox poly1 >>