?? rbf.m
字號(hào):
function w = rbf(x, t, d, sigma, lam)% function w = rbf(x,t,d,sigma,lam)%% Determines weights for a regularized radial basis function network.% % x - data% t - centers% d - desired response% sigma - spread of centers% lam - regularization parameter, set to 'opt' for opt. value via gcv%% Hugh Pasika 1997%[rx cx] = size(x); [rt ct] = size(t);if cx ~= ct, disp('dimensions of centers and data do not match'); break; endn = rx; m = rt;G = rbf_mkGF(x,t);G = exp((-1/(2*sigma^2))*G.^2);G = G + lam*eye(size(G));G = [G ones(rx,1)];w = pinv(G)*d;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -