📄 rbf_db.m
字号:
function rbf_db(w, t, sigma, st_sz)% w - weights% t - centers% sigma - center spread% st_sz - step size to be used in grid for decision boundary%% plot decision boundary for the two class problemx=-4:st_sz:4; y=-3:st_sz:3;c=0; Z=[];for i=1:length(x), for j=1:length(y), c=c+1; Z(c,1:2)=[x(i) y(j)]; endendgridout = rbf_test(w,Z,t,sigma);Y = logical(gridout(:,2) > gridout(:,1));H = reshape(Y,length(y),length(x));contour(x,y,H,1)gridpl_circ([-2/3 0], 2.34, .01, 0);title('Decision Boundary')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -