function w = rbfweight(x, y)
%w = RBFWeight(x, y)

if nargin < 1
	x = [1     0     0    -1     0     0    -2; ...
 	     0     1    -1     0     2    -2     0];
	y = [-1   -1     -1     1     1     1     1];
end

ed = exp(-0.5*dist2(x, x));
w = inv(ed) * y';
