亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? som_set.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
function [sS, ok, msgs] = som_set(sS, varargin)%SOM_SET Create and check SOM Toolbox structs, give values to their fields.%% [sS, ok, msgs] = som_set(sS, [field, contents, ...])%%   sM              = som_set(sM,'name','SOM#1.1');%   [dummy,ok,msgs] = som_set(sData);   %   sT              = som_set('som_topol','msize',[10 10],'lattice','hexa');%   [sTrain,ok]     = som_set(sTrain,'algorithm','lininit');%   [sN,ok,msgs]    = som_set('som_norm');%% Input and output arguments ([]'s are optional):%  sS                   the target struct%              (struct) a SOM Toolbox structure (not visualization struct)%              (string) structure identifier (see below)%                       the updated/created structure is returned%  [field,     (string) field to be given value to (see below)%   contents]  (varies) the contents for the field%%  ok          (vector)  status for each field-contents pair (1=ok)%  msgs        (cellstr) status string for each field-contents pair (''=ok)%%  There can be arbitrarily many field-contents pairs. If there%  are _no_ field-content pairs, and the first argument is a struct,%  the fields of the struct are checked for validity.% %  Valid struct and corresponding field identifiers: %  'som_map'   : 'codebook', 'labels', 'mask', 'neigh', 'name', %                'topol', 'msize, 'lattice', 'shape',%                'trainhist', 'comp_names', 'comp_norm', %  'som_data'  : 'data', 'labels', 'name', 'comp_names', 'comp_norm', %                'label_names'%  'som_topol' : 'msize', 'lattice', 'shape'%  'som_norm'  : 'method', 'params', 'status'%  'som_train' : 'algorithm', 'data_name', 'mask', 'neigh', %                'radius_ini', 'radius_fin', 'alpha_ini', 'alpha_type', %                'trainlen', 'time'%  'som_grid'  : 'lattice', 'shape', 'msize', 'coord',%                'line', 'linecolor', 'linewidth', %                'marker', 'markersize', 'markercolor', 'surf', %                'label', 'labelcolor', 'labelsize'%                checking given values has not been implemented yet!%                % For more help, try 'type som_set' or check out online documentation.% See also SOM_INFO, SOM_MAP_STRUCT, SOM_DATA_STRUCT, SOM_VS1TO2.%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_set%% PURPOSE%% Create and set values for fields of SOM Toolbox structs (except% visualization struct). Can also be used to check the validity of structs.%% SYNTAX%%  sMap   = som_set('som_map');%  sData  = som_set(sData);%  sNorm  = som_set(...,'field',contents,...);%  [sTopol,ok]      = som_set(sTopol,...);%  [sTrain,ok,msgs] = som_set('som_train',...);%% DESCRIPTION%% The function is used to create and set values for fields of SOM% Toolbox structs, except visualization structs. The given values are% first checked for validity, and if they are not valid, an error% message is returned. The function can also be used to check the% validity of all the fields of the struct by supplying a struct as% the first and only argument.% % NOTE: Using SOM_SET to create structures does _not_ guarantee that the% structs are valid (try e.g. sM = som_set('som_map'); som_set(sM)). The% initial values that the function gives to the fields of the structs are% typically invalid. It is recommended that when creating map or data % structs, the corresponding functions SOM_MAP_STRUCT and SOM_DATA_STRUCT % are used instead of SOM_SET. However, when giving values for the fields, % SOM_SET tries to guarantee that the values are valid.%% If a string is given as the first argument, the corresponding % structure is first created and the field-content pairs are then% applied to it. %% There can be arbitrarily many field-contents pairs. The pairs% are processed sequentially one pair at a time. For each pair,% the validity of the contents is checked and the corresponding % items in the returned 'ok'-vector and 'msgs'-cellstring are set.% - if the contents is ok, the status is set to 1 and message to ''% - if the contents is suspicious, status is set to 1, but a%   message is produced% - if the contents is invalid, status is set to 0 and an error%   message is produced. The contents are _not_ given to the field.% If there is only one output argument, the status and messages% for each pair are printed to standard output.%% The different field-contents pairs have no effect on each other.% If a field is given a value multiple times, the last valid one % stays in effect.% % In some cases, the order of the given fields is significant.% For example in the case of 'som_map', the validity of some fields, % like '.comp_names', depends on the input space dimension, which is% checked from the '.data' field (dim = size(sD.data,2) to be specific).% Therefore, the '.data' field (or '.codebook' field in case of map % struct) should always be given a value first. Below is a list of % this kind of dependancies:% % som_map:   'comp_names', 'comp_norm', 'msize', 'topol.msize',%            'labels' and 'mask' depend on 'codebook'%            new value for 'codebook' should have equal size to the old%            one (unless the old one was empty)% som_data:  'comp_names' and 'comp_norm' depend on 'data'%            new value for 'data' should have equal dimension (size(data,2))%            as the old one (unless the old one was empty)% % KNOWN BUGS%% Checking the values given to som_grid struct has not been% implemented. Use SOM_GRID function to give the values.%% REQUIRED INPUT ARGUMENTS%%  sS          The struct.%     (struct) A SOM Toolbox struct.%     (string) Identifier of a SOM Toolbox struct: 'som_map', %              'som_data', 'som_topol', 'som_norm' or 'som_train'%   % OPTIONAL INPUT ARGUMENTS %%  field     (string) Field identifier string (see below).%  contents  (varies) Value for the field (see below).%%  Below is the list of valid field identifiers for the different %  SOM Toolbox structs. %%  'som_map' (map struct)%    'codebook'    : matrix, size [munits, dim] %    'labels'      : cell array of strings, %                    size [munits, maximum_number_of_labels]%    'topol'       : topology struct (prod(topol.msize)=munits)%    'mask'        : vector, size [dim, 1]%    'neigh'       : string ('gaussian' or 'cutgauss' or 'bubble' or 'ep')%    'trainhist'   : struct array of train structs%    'name'        : string%    'comp_names'  : cellstr, size [dim, 1], e.g. {'c1','c2','c3'}%    'comp_norm'   : cell array, size [dim, 1], of cell arrays %                    of normalization structs%    Also the following can be used (although they are fields%    of the topology struct)%    'msize'       : vector (prod(msize)=munits)%    'lattice'     : string ('rect' or 'hexa')%    'shape'       : string ('sheet' or 'cyl' or 'toroid')%%  'som_data' (data struct)%    'data'        : matrix, size [dlen, dim]%    'name'        : string%    'labels'      : cell array of strings, %                    size [dlen, m]%    'comp_names'  : cellstr, size [dim, 1], e.g. {'c1','c2','c3'}%    'comp_norm'   : cell array, size [dim, 1], of cell arrays %                    of normalization structs%    'label_names' : cellstr, size [m, 1]%% 'som_topol' (topology struct)%    'msize'       : vector%    'lattice'     : string ('rect' or 'hexa')%    'shape'       : string ('sheet' or 'cyl' or 'toroid')%% 'som_norm' (normalization struct)%    'method'      : string%    'params'      : varies%    'status'      : string ('done' or 'undone' or 'uninit')%% 'som_train' (train struct)%    'algorithm'   : string ('seq' or 'batch' or 'lininit' or 'randinit')%    'data_name'   : string%    'mask'        : vector, size [dim, 1]%    'neigh'       : string ('gaussian' or 'cutgauss' or 'bubble' or 'ep')%    'radius_ini'  : scalar%    'radius_fin'  : scalar%    'alpha_ini'   : scalar%    'alpha_type'  : string ('linear' or 'inv' or 'power')%    'trainlen'    : scalar%    'time'        : string%% 'som_grid' (grid struct) : checking the values has not been implemented yet!%    'lattice'     : string ('rect' or 'hexa') or %                    (sparce) matrix, size munits x munits%    'shape'       : string ('sheet' or 'cyl' or 'toroid')%    'msize'       : vector, size 1x2%    'coord'       : matrix, size munits x 2 or munits x 3%    'line'        : string (linespec, e.g. '-', or 'none')%    'linecolor'   : RGB triple or string (colorspec, e.g. 'k') or %                    munits x munits x 3 (sparce) matrix or cell%                    array of RGB triples %    'linewidth'   : scalar or munits x munits (sparce) matrix%    'marker'      : string (markerspec, e.g. 'o', or 'none') or %                    munits x 1 cell or char array of these%    'markersize'  : scalar or munits x 1 vector%    'markercolor' : RGB triple or string (colorspec, e.g. 'k')%    'surf'        : [], munits x 1 or munits x 3 matrix of RGB triples%    'label'       : [] or munits x 1 char array or %                    munits x l cell array of strings %    'labelcolor'  : RGB triple or string (colorspec, e.g. 'g' or 'none')%    'labelsize'   : scalar%% OUTPUT ARGUMENTS% %  sS    (struct)  the created / updated struct%  ok    (vector)  length = number of field-contents pairs, gives%                  validity status for each pair (0=invalid, 1 otherwise)%  msgs  (cellstr) length = number of field-contents pairs, gives%                  error/warning message for each pair ('' if ok)%% EXAMPLES%% To create a struct:%  sM  = som_set('som_map');%  sD  = som_set('som_data');%  sTo = som_set('som_topol');%  sTr = som_set('som_train');%  sN  = som_set('som_norm');%  sG  = som_set('som_grid');%% To check the the contents of a struct: %  som_set(sS);%  [dummy,ok]      = som_set(sS);%  [dummy,ok,msgs] = som_set(sS);%% To give values to fields: %  sTo = som_set(sTo,'msize',[10 10],'lattice','hexa','shape','toroid');%  sM  = som_set('som_map','codebook',rand(100,4),'topol',sTo);%   % SEE ALSO% %  som_info         Prints information the given struct.%  som_map_struct   Create map struct.%  som_data_struct  Create data struct.%  som_topol_struct Create topology struct.%  som_train_struct Create training struct.%  som_grid         Create and visualize grid struct.%  som_vs1to2       Conversion from version 1.0 structs to 2.0.%  som_vs2to1       Conversion from version 2.0 structs to 1.0.% Copyright (c) 1999-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/% Version 2.0beta juuso 101199 130300%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% create struct if necessaryif ischar(sS),   switch sS   case 'som_map',    sS=struct('type', 'som_map', ...              'codebook', [], ...              'topol', som_set('som_topol'), ...              'labels', cell(1), ...              'neigh', 'gaussian', ...              'mask', [], ...              'trainhist', cell(1), ...              'name', '',...              'comp_names', {''}, ...              'comp_norm', cell(1));   case 'som_data',     sS=struct('type', 'som_data', ...              'data', [], ...              'labels', cell(1), ...              'name', '', ...              'comp_names', {''}, ...              'comp_norm', cell(1), ...              'label_names', []);   case 'som_topol',    sS=struct('type', 'som_topol', ...              'msize', 0, ...              'lattice', 'hexa', ...              'shape', 'sheet');   case 'som_train',    sS=struct('type', 'som_train', ...              'algorithm', '', ...              'data_name', '', ...              'neigh', 'gaussian', ...              'mask', [], ...              'radius_ini', NaN, ...              'radius_fin', NaN, ...              'alpha_ini', NaN, ...              'alpha_type', 'inv', ...              'trainlen', NaN, ...              'time', '');   case 'som_norm',    sS=struct('type', 'som_norm', ...              'method', 'var', ...              'params', [], ...              'status', 'uninit');   case 'som_grid',     sS=struct('type','som_grid',...	      'lattice','hexa',...	      'shape','sheet',...	      'msize',[1 1],...	      'coord',[],...	      'line','-',...	      'linecolor',[.9 .9 .9],...	      'linewidth',0.5,...	      'marker','o',...	      'markersize',6,...	      'markercolor','k',...	      'surf',[],...	      'label',[],...	      'labelcolor','g',...	      'labelsize',12);       otherwise    ok=0; msgs = {['Unrecognized struct type: ' sS]}; sS = [];    return;  end    elseif isstruct(sS) & length(varargin)==0,     % check all fields  fields = fieldnames(sS);  if ~any(strcmp('type',fields)),     error('The struct has no ''type'' field.');  end  k = 0;  for i=1:length(fields),     contents = getfield(sS,fields{i});    if ~strcmp(fields{i},'type'),       varargin{k+1} = fields{i};      varargin{k+2} = contents;      k = k + 2;    else       if ~any(strcmp(contents, ...        {'som_map','som_data','som_topol','som_train','som_norm'})), 	error(['Unknown struct type: ' contents]);      end    end  end  end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% set field valuesp = ceil(length(varargin)/2);ok = ones(p,1);msgs = cell(p,1);for i=1:p,   field = varargin{2*i-1};   content = varargin{2*i};  msg = '';  isok = 0;    si = size(content);  isscalar = (prod(si)==1);  isvector = (sum(si>1)==1);  isrowvector = (isvector & si(1)==1);  if isnumeric(content),     iscomplete = all(~isnan(content(:)));     ispositive = all(content(:)>0);     isinteger  = all(content(:)==ceil(content(:)));    isrgb = all(content(:)>=0 & content(:)<=1) & size(content,2)==3;  end    switch sS.type,    case 'som_map',    [munits dim] = size(sS.codebook);    switch field,      case 'codebook',       if ~isnumeric(content), 	msg = '''codebook'' should be a numeric matrix';       elseif size(content) ~= size(sS.codebook) & ~isempty(sS.codebook), 	msg = 'New ''codebook'' must be equal in size to the old one.';       elseif ~iscomplete, 	msg = 'Map codebook must not contain NaN''s.';       else	sS.codebook = content; isok=1;      end     case 'labels',       if isempty(content), 	sS.labels = cell(munits,1); isok = 1;      elseif size(content,1) ~= munits, 	msg = 'Length of labels array must be equal to the number of map units.';      elseif ~iscell(content) & ~ischar(content), 	msg = '''labels'' must be a string array or a cell array/matrix.';      else	isok = 1;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区欧美激情| 久久综合久色欧美综合狠狠| 国产不卡视频在线观看| 久久激情五月激情| 免费观看在线色综合| 日韩和欧美一区二区| 欧美bbbbb| 精品一区二区av| 国产精品综合在线视频| 国产精品一级片在线观看| 国产成人综合精品三级| 国产高清视频一区| 99精品久久免费看蜜臀剧情介绍| 国产99久久久精品| eeuss国产一区二区三区| 97久久超碰国产精品| 欧美伊人久久久久久久久影院 | 精品国产一区久久| 欧美精品一区视频| 国产精品免费视频观看| 亚洲综合无码一区二区| 久久精品国产亚洲高清剧情介绍| 激情文学综合插| 成人理论电影网| 欧美精品在欧美一区二区少妇| 日韩三级免费观看| 中文字幕不卡在线播放| 一区二区久久久久久| 蜜臀va亚洲va欧美va天堂| 国产精品小仙女| 欧美视频一区二区三区在线观看| 欧美不卡激情三级在线观看| 国产精品国产a级| 视频一区二区三区在线| 国产精品1区2区3区| 欧美最新大片在线看| 久久这里只有精品6| 亚洲美女偷拍久久| 国产在线不卡一卡二卡三卡四卡| 在线视频一区二区免费| 久久久亚洲高清| 午夜电影一区二区三区| 91小视频在线观看| 日韩女优毛片在线| 亚洲一级二级三级在线免费观看| 国模大尺度一区二区三区| 欧美天堂亚洲电影院在线播放| 久久日一线二线三线suv| 亚洲午夜国产一区99re久久| 国产精品资源网站| 日韩免费观看2025年上映的电影| 1000精品久久久久久久久| 黄网站免费久久| 欧美一区二区三区电影| 亚洲午夜免费福利视频| 岛国一区二区三区| 久久日一线二线三线suv| 琪琪一区二区三区| 欧美一a一片一级一片| 中文字幕欧美三区| 国产在线精品视频| 精品电影一区二区| 男女激情视频一区| 欧美剧在线免费观看网站| 洋洋av久久久久久久一区| 一本色道综合亚洲| 亚洲视频免费观看| www.亚洲在线| 1000部国产精品成人观看| 成人美女视频在线看| 久久久av毛片精品| 国产69精品久久久久毛片| 国产午夜亚洲精品不卡| 国内精品视频一区二区三区八戒| 91精品国产综合久久久蜜臀粉嫩| 亚洲成a人在线观看| 欧美色欧美亚洲另类二区| 亚洲va欧美va人人爽| 欧美三级电影在线观看| 午夜精品久久久久久久久久久| 色就色 综合激情| 日韩欧美区一区二| 激情欧美一区二区| 亚洲精品在线三区| 国产自产v一区二区三区c| 欧美sm美女调教| 国产精品亚洲成人| 国产精品护士白丝一区av| 北岛玲一区二区三区四区| 亚洲三级在线观看| 欧美日韩国产中文| 老司机免费视频一区二区三区| 欧美剧在线免费观看网站 | 日韩国产精品久久久| 91精品国产品国语在线不卡| 美女诱惑一区二区| 国产色产综合产在线视频| 国产91露脸合集magnet| 日韩一区欧美一区| 337p亚洲精品色噜噜| 韩国精品主播一区二区在线观看| 久久精品一区二区三区不卡牛牛 | 精品国产免费久久| 成人免费看视频| 亚洲高清免费一级二级三级| 日韩一区二区免费电影| 国产一区二区精品久久99| 亚洲色大成网站www久久九九| 欧美色精品在线视频| 国产一区二区不卡| 亚洲女同一区二区| 欧美电影免费提供在线观看| 99久久综合99久久综合网站| 日韩精彩视频在线观看| 国产精品视频yy9299一区| 69久久99精品久久久久婷婷| 国产盗摄一区二区| 视频一区二区三区入口| 国产精品日产欧美久久久久| 欧美一区二区精美| 91女厕偷拍女厕偷拍高清| 激情小说欧美图片| 日韩激情一区二区| 亚洲激情自拍视频| 中文字幕av资源一区| 日韩一区二区在线看| 色香蕉久久蜜桃| 波多野结衣一区二区三区| 麻豆91在线看| 天天色天天操综合| 亚洲免费电影在线| 亚洲视频网在线直播| 国产欧美一区二区在线观看| 欧美一级欧美一级在线播放| 欧美综合天天夜夜久久| 99久久99久久久精品齐齐| 国产精品原创巨作av| 久久精品二区亚洲w码| 亚洲国产成人高清精品| 亚洲激情六月丁香| 亚洲欧洲日韩一区二区三区| 久久人人97超碰com| 日韩情涩欧美日韩视频| 欧美一区二区三区在线观看| 欧美日韩色综合| 欧美日韩一区小说| 欧美性做爰猛烈叫床潮| 91行情网站电视在线观看高清版| 成人免费视频一区| 床上的激情91.| 成人免费视频网站在线观看| 国产成人av福利| 丰满放荡岳乱妇91ww| 国产91在线看| 一本到不卡免费一区二区| 91一区二区三区在线播放| 99精品在线观看视频| 91理论电影在线观看| 91色.com| 欧美日韩另类国产亚洲欧美一级| 日本高清不卡视频| 欧美美女网站色| 日韩一区二区三区观看| 久久综合色天天久久综合图片| 精品国产乱码91久久久久久网站| 久久综合99re88久久爱| 中文字幕av一区二区三区免费看| 国产精品久久久久久一区二区三区 | 日韩手机在线导航| 精品奇米国产一区二区三区| 欧美一区二区三区爱爱| 国产偷国产偷亚洲高清人白洁| 国产女同互慰高潮91漫画| 综合久久综合久久| 一区二区在线观看不卡| 日韩电影免费在线观看网站| 久99久精品视频免费观看| 成人av手机在线观看| 日本福利一区二区| 日韩一区和二区| 国产精品久久精品日日| 亚洲成人av一区二区三区| 国模娜娜一区二区三区| 色哟哟国产精品| 欧美成人性福生活免费看| 亚洲日韩欧美一区二区在线| 亚洲成人av免费| 国产91精品在线观看| 欧美日韩精品一区二区三区| 久久久久久久久一| 亚洲一区二区三区四区五区黄| 蜜桃一区二区三区在线观看| 成人99免费视频| 日韩午夜激情视频| 亚洲另类春色国产| 国产成人av一区| 日韩免费一区二区| 亚洲一卡二卡三卡四卡| 国产99精品在线观看| 欧美一区二区啪啪|