set.m

来自「模式识别工具箱,本人毕业论文时用到的,希望对大家有用!」· M 代码 · 共 55 行

M
55
字号
%SET Set mapping parameters%%	W = set(W,name,value)%% Sets the parameter of the given name (as string) of the mapping W to value.% No error checking is done. If this is desired, use the mapping command.%% List of parameter names:%%  m name of routine used for learning or testing%  d weights defining the mapping.%  l output labels for the outputs ('class names')%    of the mapping.%  k number of inputs of the mapping.%  c number of outputs of the mapping.%  v output multiplication factor(s)%  p parameter vector describing the  mapping structure %  s desired output conversion%  r reject value%  t description %% See mappings, mapping for more informationfunction w = set(w,name,v)if ~isa(w,'mapping')	error('mapping expected')endswitch namecase 'm'	w.m = v;case 'd'	w.d = v;case 'l'	w.l = v;case 'k'	w.k = v;case 'c'	w.c = v;case 'v'	w.v = v;case 'p'	w.p = v;case 's'	w.s = v;case 'r'	w.r = v;case 't'	w.t = v;otherwise	error('Unknown parameter name found')end	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?