www.pudn.com > ELM.rar > RBFun.m, change:2013-07-20,size:287b


function H = RBFun(P,IW,Bias); 
 
%%%%%%%% RBF network using Gaussian kernel 
ind=ones(size(P,1),1); 
for i=1:size(IW,1) 
    Weight=IW(i,:);          
    WeightMatrix=Weight(ind,:); 
    V(:,i)=-sum((P-WeightMatrix).^2,2);     
end 
BiasMatrix=Bias(ind,:); 
V=V.*BiasMatrix; 
H=exp(V);