mappingtype.m

来自「模式识别 MATLAB 的工具箱,比较实用,包括SVM,ICA,PCA,NN等等」· M 代码 · 共 34 行

M
34
字号
%MAPPINGTYPE Determine mapping type%%	n = mappingtype(W)%% n = 1 :  combiner% n = 2 :  fixed% n = 3 :  untrained% n = 4 :  trainedfunction n = mappingtype(w)if isstr(w.d);	if strcmp(w.d,'combiner');		n = 1; return	elseif strcmp(w.d,'fixed');		n = 2; return	endendif isa(w.d,'double') & isnan(w.d)	n = 2; returnendif strcmp(w.m,'sequential')& mappingtype(w.d{2}) == 3	n = 3;elseif strcmp(w.m,'sequential')& mappingtype(w.d{2}) == 2	n = 2;else	if w.c == 0		n = 3;	else		n = 4;	endend

⌨️ 快捷键说明

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