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

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

?? som_modify_dataset.m

?? Kohonen的SOM軟件包
?? 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一区二区三区免费野_久草精品视频
色婷婷av一区二区三区软件 | 国产高清亚洲一区| 亚洲国产精品视频| 亚洲乱码国产乱码精品精的特点 | 国产精品久久毛片av大全日韩| 26uuu国产日韩综合| 久久久国产精品午夜一区ai换脸| 日韩欧美国产系列| 欧美成人aa大片| 国产日韩欧美麻豆| 亚洲国产激情av| 亚洲色图.com| 日韩高清中文字幕一区| 麻豆精品一二三| 国产高清久久久| 91在线高清观看| 欧美精品三级日韩久久| 日韩一区二区在线播放| 国产亚洲污的网站| 亚洲欧美一区二区三区孕妇| 香蕉久久一区二区不卡无毒影院 | 日韩一区二区三| 国产日产欧美一区| 亚洲日本在线a| 94-欧美-setu| 欧美性猛交xxxx乱大交退制版| 51午夜精品国产| 国产婷婷色一区二区三区在线| 亚洲欧洲三级电影| 免费在线观看视频一区| 成人午夜碰碰视频| 国产在线一区观看| 亚洲国产日韩a在线播放性色| 亚洲国产精品久久人人爱蜜臀| 另类专区欧美蜜桃臀第一页| 丁香婷婷综合激情五月色| 欧美三级韩国三级日本一级| 精品女同一区二区| 一区二区在线观看免费| 精东粉嫩av免费一区二区三区| 91网址在线看| 国产亚洲一区二区三区四区| 午夜视频在线观看一区二区三区| 粉嫩蜜臀av国产精品网站| 欧美日韩美少妇| 国产精品久久久久久久久免费桃花 | 日本中文字幕一区二区视频| 成人a区在线观看| 日韩一区二区免费视频| 亚洲理论在线观看| 国产福利一区二区三区视频在线| 欧美日韩1区2区| 日韩一区在线看| 丁香婷婷综合激情五月色| 日韩欧美一二三区| 亚洲超碰97人人做人人爱| 99国产精品国产精品久久| 国产午夜亚洲精品午夜鲁丝片| 奇米777欧美一区二区| 欧美日韩国产另类一区| 亚洲靠逼com| 91在线云播放| 国产精品乱码人人做人人爱| 国产精品亚洲综合一区在线观看| 3d成人动漫网站| 午夜精品一区二区三区电影天堂| 色综合天天在线| 中文字幕一区二区三区不卡在线| 国产精品自拍网站| 久久久精品国产免费观看同学| 免费不卡在线观看| 日韩午夜中文字幕| 精品一二线国产| 日韩精品在线一区| 韩国成人福利片在线播放| 日韩欧美精品在线视频| 久久爱www久久做| 久久亚洲捆绑美女| 国产精品1区2区| 国产精品入口麻豆原神| 成人高清免费观看| 中文字幕一区二区日韩精品绯色| 成人av电影免费在线播放| 亚洲欧美一区二区三区极速播放 | 国产精品一区二区91| 亚洲第一搞黄网站| 成人丝袜高跟foot| 中文字幕亚洲不卡| 欧美午夜电影一区| 天天操天天综合网| 久久精品夜夜夜夜久久| 成人av免费在线观看| 亚洲人成精品久久久久久 | 亚洲地区一二三色| 日韩欧美一级精品久久| 国产99久久久久| 亚洲精品亚洲人成人网 | 久久精品在这里| 白白色 亚洲乱淫| 亚洲精品成人少妇| 91精品国产综合久久久久久久| 美日韩一级片在线观看| 久久久久久久久久久99999| 91亚洲精品乱码久久久久久蜜桃 | 久久99深爱久久99精品| 中文字幕欧美日韩一区| 在线观看日产精品| 国产一级精品在线| 亚洲国产综合人成综合网站| 日韩精品自拍偷拍| 99国产麻豆精品| 久久成人免费日本黄色| 日韩伦理av电影| 欧美成人福利视频| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 免费久久99精品国产| 中文字幕在线一区免费| 欧美刺激脚交jootjob| 一本到高清视频免费精品| 蜜桃一区二区三区在线| 亚洲人成精品久久久久| 亚洲精品一线二线三线无人区| 日本韩国一区二区| 国产精品一区二区黑丝| 日本午夜一本久久久综合| 亚洲狼人国产精品| 欧美—级在线免费片| 日韩三级精品电影久久久 | 日韩一区二区影院| 欧洲色大大久久| 9色porny自拍视频一区二区| 精品一二三四区| 五月天国产精品| 亚洲日本va午夜在线影院| 国产亚洲欧洲997久久综合| 日韩一卡二卡三卡| 欧美老年两性高潮| 欧美日韩一区精品| 91国内精品野花午夜精品| 波多野结衣视频一区| 国产另类ts人妖一区二区| 麻豆精品新av中文字幕| 免费看日韩a级影片| 日欧美一区二区| 亚洲国产成人精品视频| 亚洲一级二级在线| 亚洲精品日韩专区silk| 亚洲伦理在线免费看| 亚洲视频在线一区| 亚洲欧美国产高清| 亚洲一区二区三区小说| 亚洲第一久久影院| 亚洲成av人综合在线观看| 亚洲图片有声小说| 日韩av网站免费在线| 日本91福利区| 国内精品伊人久久久久av影院 | 在线国产亚洲欧美| 欧洲国内综合视频| 欧美日韩国产123区| 欧美一区二区播放| 精品国产a毛片| 中文一区二区在线观看| 中文字幕日韩一区| 亚洲欧美日韩国产另类专区 | 日韩免费看网站| 日韩一区二区三区在线| 日韩亚洲欧美成人一区| 久久午夜老司机| 国产精品成人一区二区艾草| 国产精品电影一区二区三区| 一区二区三区毛片| 日韩成人免费看| 丁香一区二区三区| 在线一区二区观看| 日韩欧美一区二区三区在线| 91丨九色丨黑人外教| 93久久精品日日躁夜夜躁欧美| 色播五月激情综合网| 91精品国产欧美一区二区| 国产日韩欧美精品在线| 亚洲欧美日韩国产综合在线 | 亚洲欧美在线观看| 丝袜美腿亚洲综合| 成人免费毛片app| 欧美精品乱码久久久久久| 国产女人aaa级久久久级 | www.欧美色图| 91精品国产美女浴室洗澡无遮挡| 久久精品夜色噜噜亚洲aⅴ| 亚洲综合久久久久| 精品在线视频一区| 在线观看视频一区二区欧美日韩| 欧美mv日韩mv国产网站| 亚洲精品成人a在线观看| 国产麻豆视频一区二区| 欧美日韩不卡一区| 亚洲精品伦理在线| 国产麻豆日韩欧美久久| 欧美伦理电影网|