mappingtype.m
来自「matlab 模式识别工具包 希望能对你们有用」· 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 + -
显示快捷键?