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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? som_modify_dataset.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
字號:
function sD = som_modify_dataset(sD,action,varargin)%SOM_MODIFY_DATASET Add or remove components or samples to/from a data struct.%% sD = som_modify_dataset(sD, 'addcomp', D, [indsto], [cnames})% sD = som_modify_dataset(sD, 'addsamp', D, [indsto], ['norm'])% sD = som_modify_dataset(sD, 'removecomp', [inds])% sD = som_modify_dataset(sD, 'removesamp', inds)% sD = som_modify_dataset(sD, 'extractcomp', [inds])% sD = som_modify_dataset(sD, 'extractsamp', inds)% sD = som_modify_dataset(sD, 'movecomp', inds, indsto)% sD = som_modify_dataset(sD, 'movesamp', inds, indsto)%%  Input and output arguments ([]'s are optional)%   sD      (struct) data struct%   action  (string) 'addcomp', 'addsamp', 'removecomp', 'removesamp', %                    'extractcomp', 'extractsamp', 'movecomp', or 'movesamp' %%   other input arguments depend on the action%%   'addcomp': %   D        (matrix) data matrix, size [dlen x d]%            (struct) data struct, size of .data field [dlen x d]%   [indsto] (vector) new indeces of the components, length=d%   [cnames] (cellstr) of size d x 1, the component names%%   'addsamp': %   D        (matrix) data matrix, size [n x dim] %   [indsto] (vector) new indeces of the samples, length=n%   ['norm'] (string) specified if the normalization procedure%                     should be applied to the new samples%%   'removecomp', 'extractcomp': %   [inds]   (vector) indeces of the components to be removed/extracted. %                     If not given, a prompt will appear from which the%                     user can select the appropriate components.%%   'removesamp', 'extractsamp': %   inds     (vector) indeces of the samples to be removed/extracted%%   'movecomp', 'movesamp': %   inds     (vector) indeces of the components/samples to be moved%   indsto   (vector) new indeces of the components/samples %% See also SOM_DATA_STRUCT.% Copyright (c) 2000 by Juha Vesanto% Contributed to SOM Toolbox on June 16th, 2000 by Juha Vesanto% http://www.cis.hut.fi/projects/somtoolbox/ % Version 2.0beta juuso 200400 160600 280800%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% input arguments[dlen dim] = size(sD.data);switch action,   case 'addcomp',      D = varargin{1};         if isstruct(D), [n d] = size(D.data); else [n d] = size(D); end    if n ~= dlen, error('The number of samples in the data struct and new data should match.'); end    indsto = [];     cnames = [];     for i=2:length(varargin),       if isnumeric(varargin{i}), 	indsto = varargin{i}; 	if length(indsto) ~= d, 	  error('The number of indeces should match the number of new components'); 	end      else	if ischar(varargin{i}), cnames = cellstr(varargin{i}); 	elseif iscellstr(varargin{i}), cnames = varargin{i}; 	else	  error(['[som_modify_dataset] Unrecognized argument #' num2str(i+1)]); 	end		if length(cnames) ~= d, 	  error('The number of component names should match the number of new components'); 	end      end    end case 'addsamp',  D = varargin{1};  if isstruct(D),     lab = D.labels;     if isfield(D,'data'), D = D.data; else D = D.codebook; end  else lab = [];   end  [n d] = size(D);   if d ~= dim,     error(['The dimensions of the old and new data sets should match.']);   end  norm = 0;   indsto = [];   for i=2:length(varargin),    if ischar(varargin{i}) & strcmp(varargin{i},'norm'), norm = 1;     elseif isnumeric(varargin{i}),       indsto = varargin{i};       if length(indsto) ~= n, 	error(['The number of new indeces should match the number of new' ...	       ' samples']);       end    else      warning(['[som_modify_dataset] Ignoring unrecognized argument #', ...	       num2str(i+2)]);    end  end case 'removecomp',  if length(varargin)>0,     inds = varargin{1};  else    [inds, ok] = listdlg('ListString',sD.comp_names, 'PromptString', ...                         'Components', 'Name', 'Remove components', 'uh', 25);    if ~ok, return; end  end  if min(inds)<1 | max(inds)>dim,     error('The component indeces must be within [1,dim]');   end case 'removesamp',  inds = varargin{1};  if min(inds)<1 | max(inds)>dlen,     error('The sample indeces must be within [1,dlen]');   end case 'extractcomp',  if length(varargin)>0,     inds = varargin{1};  else    [inds, ok] = listdlg('ListString',sD.comp_names, 'PromptString',...                          'Components', 'Name', 'Extract components', 'uh', 25);    if ~ok, return; end  end  if min(inds)<1 | max(inds)>dim,     error('The component indeces must be within [1,dim]');   end case 'extractsamp',  inds = varargin{1};  if min(inds)<1 | max(inds)>dlen,     error('The sample indeces must be within [1,dlen]');   end case 'movecomp',  inds = varargin{1};  indsto = varargin{2};  if min(inds)<1 | max(inds)>dim | min(indsto)<1 | max(indsto)>dim,     error('The component indeces must be within [1,dim]');   end case 'movesamp',  inds = varargin{1};  indsto = varargin{2};  if min(inds)<1 | max(inds)>dlen | min(indsto)<1 | max(indsto)>dlen,     error('The sample indeces must be within [1,dlen]');   end otherwise,   error('Unrecognized action mode');end   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% actionswitch action,   case 'addcomp',     if isstruct(D),             sD.data = [sD.data, D.data];       sD.comp_names(dim+[1:d]) = D.comp_names;       sD.comp_norm(dim+[1:d]) = D.comp_norm;       sD = som_label(sD,'add',1:dlen,D.labels);    else      sD.data = [sD.data, D];      if isempty(cnames), 	for i=1:d, sD.comp_names(dim+i) = {sprintf('Variable%d',i+dim)}; end      else	sD.comp_names(dim+[1:d]) = cnames;       end      for i=1:d, sD.comp_norm(dim+i) = {[]}; end    end    if ~isempty(indsto),       sD = som_modify_dataset(sD,'movecomp',dim+[1:d],indsto);    end  case 'addsamp',     if norm, D = som_normalize(D,sD); end    sD.data = [sD.data; D];     nl = size(sD.labels,2);     sD.labels(dlen+[1:n],1:nl) = {''};    if ~isempty(lab),       nl2 = size(lab,2);       if nl2>nl, sD.labels(1:dlen,nl+[1:(nl2-nl)]) = {''}; end      sD.labels(dlen+[1:n],1:nl2) = lab;     end    if ~isempty(indsto),       sD = som_modify_dataset(sD,'movesamp',dlen+[1:n],indsto);    end  case 'removecomp',     includeinds = 1:dim;     includeinds(inds) = 0;     sD = som_modify_dataset(sD,'extractcomp',find(includeinds));  case 'removesamp',     includeinds = 1:dlen;     includeinds(inds) = 0;     sD = som_modify_dataset(sD,'extractsamp',find(includeinds));  case 'extractcomp',     sD.data = sD.data(:,inds);    sD.comp_names = sD.comp_names(inds);    sD.comp_norm = sD.comp_norm(inds);      case 'extractsamp',     sD.data = sD.data(inds,:);    sD.labels = sD.labels(inds,:);  case 'movecomp',     [indsto,order] = sort(indsto);    inds = inds(order);    oldinds = 1:dim;     oldinds(inds) = 0;     newinds = oldinds(oldinds>0);    for i=1:length(indsto),      ifrom = inds(i); ito = indsto(i);      if ito==1, newinds = [ifrom, newinds];      else newinds = [newinds(1:ito-1), ifrom, newinds(ito:end)];      end    end    sD.data = sD.data(:,newinds);     sD.comp_names = sD.comp_names(:,newinds);     sD.comp_norm = sD.comp_norm(:,newinds);   case 'movesamp',     [indsto,order] = sort(indsto);    inds = inds(order);    oldinds = 1:dim;     oldinds(inds) = 0;     newinds = oldinds(oldinds>0);    for i=1:length(indsto),      ifrom = inds(i); ito = indsto(i);      if ito==1, newinds = [ifrom, newinds];      else newinds = [newinds(1:ito-1), ifrom, newinds(ito:end)];      end    end    sD.data = sD.data(newinds,:);    sD.labels = sD.labels(newinds,:);end%som_set(sD);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆123| 国产欧美日韩另类一区| 久久久久久久综合色一本| 亚洲另类春色校园小说| 国内精品伊人久久久久av一坑| 91丨九色porny丨蝌蚪| 亚洲精品一线二线三线无人区| 一区二区三区在线免费视频| 国产精品一二三区| 欧美一级夜夜爽| 夜夜爽夜夜爽精品视频| 9i在线看片成人免费| 欧美精品一区二区三区很污很色的| 一区二区三区四区在线播放| 国产黑丝在线一区二区三区| 日韩欧美一级片| 日韩精品一二三四| 欧美日韩一区小说| 亚洲人成影院在线观看| www.综合网.com| 国产欧美日韩亚州综合| 国产精品亚洲第一| 26uuu国产电影一区二区| 日本欧美加勒比视频| 91精品国产手机| 日韩av成人高清| 91精品国产91久久综合桃花| 亚洲.国产.中文慕字在线| 在线精品亚洲一区二区不卡| 亚洲色图视频免费播放| 成人app下载| ㊣最新国产の精品bt伙计久久| 国产综合色在线| 久久综合九色欧美综合狠狠| 另类小说一区二区三区| 日韩欧美激情在线| 久久精品国产999大香线蕉| 日韩视频免费直播| 久久99精品一区二区三区三区| 欧美一区二区三区日韩视频| 色菇凉天天综合网| 一区二区三区中文字幕在线观看| 96av麻豆蜜桃一区二区| 亚洲高清在线视频| 日韩欧美一区二区免费| 久久99精品国产麻豆不卡| 久久免费美女视频| 9i看片成人免费高清| 一区二区国产视频| 91精品国产综合久久精品app | ...中文天堂在线一区| 91蝌蚪porny| 一级做a爱片久久| 欧美电影影音先锋| 国产专区欧美精品| 国产精品免费av| 欧美在线观看视频在线| 久久福利视频一区二区| 欧美高清在线视频| 欧美色图在线观看| 国产乱淫av一区二区三区 | 亚洲高清在线视频| 精品裸体舞一区二区三区| 国产不卡在线播放| 一区二区三区四区不卡视频| 欧美一区二区在线观看| 国产成人免费av在线| 一区二区三区在线观看视频| 亚洲精品一区二区三区精华液| 成人av网站在线观看免费| 日韩中文字幕不卡| 国产精品人妖ts系列视频| 欧美日韩国产大片| 国产69精品久久777的优势| 亚洲一区二区视频在线| 国产欧美一区二区三区网站| 日本一区二区三区dvd视频在线| 色94色欧美sute亚洲线路一久| 免费在线观看一区二区三区| 国产精品天美传媒| 日韩免费一区二区三区在线播放| a美女胸又www黄视频久久| 青娱乐精品在线视频| 一区二区中文字幕在线| 久久亚洲捆绑美女| 欧美电影在哪看比较好| 91视频一区二区| 国产一区二区三区久久久| 亚洲va国产va欧美va观看| 中文字幕一区在线观看视频| 欧美xxxx老人做受| 欧美三级日韩三级| 99视频国产精品| 国产a区久久久| 国内精品久久久久影院薰衣草| 亚洲精品日产精品乱码不卡| 亚洲国产精品99久久久久久久久| 51精品秘密在线观看| 在线精品视频一区二区三四| www.久久久久久久久| 国产伦精品一区二区三区视频青涩 | 4hu四虎永久在线影院成人| 91在线视频免费观看| www.av精品| 国产成人精品一区二区三区四区| 免费的国产精品| 日韩综合在线视频| 五月婷婷久久丁香| 亚洲午夜激情av| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品水嫩水嫩| 国产精品少妇自拍| 中文字幕一区二区三区av| 中文一区二区完整视频在线观看| 久久影音资源网| 久久网站最新地址| 久久久不卡影院| 久久久久久久电影| 久久精品一区蜜桃臀影院| 国产欧美日韩在线| 国产精品黄色在线观看| 中文字幕一区二区三区精华液| 中文字幕一区日韩精品欧美| 亚洲精选在线视频| 亚洲午夜在线视频| 蜜乳av一区二区| 国产一区二区三区电影在线观看 | 日本精品一区二区三区四区的功能| 成人免费毛片嘿嘿连载视频| 99九九99九九九视频精品| 一本色道a无线码一区v| 欧美亚洲一区二区在线观看| 欧美一区欧美二区| 久久久91精品国产一区二区精品| 国产精品美女一区二区三区 | 日韩av电影免费观看高清完整版在线观看| 偷拍自拍另类欧美| 麻豆久久久久久久| 国产高清成人在线| 色综合久久88色综合天天免费| 欧美午夜不卡在线观看免费| 精品久久免费看| 国产精品久久福利| 日韩精品一区第一页| 成人性视频免费网站| 在线观看亚洲精品| 亚洲精品一区二区三区精华液| 中文字幕一区二区三区在线不卡| 亚洲va天堂va国产va久| 国产麻豆成人传媒免费观看| 91黄色免费观看| 精品福利一二区| 亚洲人亚洲人成电影网站色| 免费在线看成人av| 97se狠狠狠综合亚洲狠狠| 日韩视频在线你懂得| 中文字幕一区二区三中文字幕| 日本va欧美va精品| 成人免费av网站| 91精品国产品国语在线不卡| 国产精品视频第一区| 蜜臀va亚洲va欧美va天堂| 91丝袜美腿高跟国产极品老师 | 在线电影欧美成精品| 欧美激情一区二区在线| 日韩精品福利网| 色综合色综合色综合| 久久青草国产手机看片福利盒子| 亚洲成在线观看| 91亚洲精品一区二区乱码| 国产亚洲一区二区三区在线观看 | 亚洲成人av在线电影| 成人av第一页| 久久久久九九视频| 久久国产乱子精品免费女| 欧美亚洲精品一区| 日韩一区中文字幕| 国产剧情一区二区三区| 日韩欧美国产1| 午夜精品福利一区二区三区蜜桃| 99麻豆久久久国产精品免费| 久久久久久9999| 国产在线视频一区二区| 欧美一级在线观看| 日本午夜精品视频在线观看| 色香蕉成人二区免费| 亚洲色图20p| 99久久精品99国产精品 | 亚洲成人av中文| 在线看日韩精品电影| 亚洲精选一二三| 91久久国产最好的精华液| 亚洲欧美日本韩国| 91色视频在线| 亚洲精品国产高清久久伦理二区| 99久久99久久久精品齐齐| 国产精品高潮呻吟| a在线欧美一区| 亚洲乱码国产乱码精品精的特点| 成人污污视频在线观看|