www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregrbf/name.m
function n= name(m); % RBF/NAME % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. kn= func2str(m.kernel); n= ['RBF-',kn]; if strcmp(kn,'wendland') n= sprintf('%s%1d',n,m.cont); end nCenters = getMaxNCenters( m ); % nCenters will be a string. If may contain just a number or it may % constain some function nObs. If we can convert this string into a number, % then we append the string to the model name. num = str2double( nCenters ); if isfinite(num) n = [n, '-', nCenters]; else nObs = 100; nCenters = eval(nCenters); if nCenters<=25 n = [n, '-Low']; elseif nCenters>45 n = [n, '-High']; else n = [n, '-Medium']; end end