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

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

?? som_modify_dataset.m

?? 競爭學(xué)習(xí)的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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av免费在线| 国产午夜精品福利| 国产三级欧美三级| 天天影视涩香欲综合网| 暴力调教一区二区三区| 欧美一级欧美三级| 亚洲综合激情小说| 成人的网站免费观看| 久久久精品2019中文字幕之3| 亚洲午夜精品在线| 91免费视频观看| 亚洲国产成人午夜在线一区| 精品一区免费av| 91精品国产手机| 亚洲mv在线观看| 在线看不卡av| 亚洲日本va午夜在线电影| 国产成都精品91一区二区三 | 五月综合激情婷婷六月色窝| 成人激情免费视频| 国产日韩欧美精品综合| 国模一区二区三区白浆| 欧美本精品男人aⅴ天堂| 蜜臀av一区二区三区| 欧美一区二区三区四区高清| 青青草精品视频| 精品少妇一区二区三区在线视频| 日韩高清欧美激情| 欧美老年两性高潮| 日本欧美韩国一区三区| 欧美一区二区国产| 久久er99热精品一区二区| 欧美电影免费观看高清完整版在| 久久精品国产一区二区| 欧美va在线播放| 国内精品伊人久久久久影院对白| 久久久久久久精| 高清久久久久久| 中文字幕制服丝袜一区二区三区 | 91福利在线播放| 亚洲高清免费视频| 91精品国产综合久久婷婷香蕉| 亚洲成人三级小说| 日韩精品一区国产麻豆| 黑人巨大精品欧美一区| 中文一区一区三区高中清不卡| gogogo免费视频观看亚洲一| 一区二区三区不卡视频| 欧美精品视频www在线观看| 轻轻草成人在线| 久久网这里都是精品| 成人动漫中文字幕| 亚洲最大色网站| 精品久久久久久最新网址| 国产精品一品二品| 一区二区视频免费在线观看| 911国产精品| 国产一区二区视频在线| 国产精品久久久久影院| 欧美三级中文字幕在线观看| 麻豆精品国产91久久久久久| 国产拍揄自揄精品视频麻豆| 欧洲av一区二区嗯嗯嗯啊| 免费在线观看不卡| 国产精品美女久久久久久久久 | 国产精选一区二区三区| 一区二区三区四区蜜桃| 日韩亚洲欧美中文三级| 国产成a人无v码亚洲福利| 一区二区三区.www| 久久久久久久久久久99999| 日本电影欧美片| 国产在线一区观看| 亚洲成人tv网| 中文字幕精品—区二区四季| 欧美高清一级片在线| 成人午夜碰碰视频| 麻豆精品在线观看| 亚洲五码中文字幕| 中文字幕va一区二区三区| 777亚洲妇女| 日本乱码高清不卡字幕| 国产成人精品免费在线| 日韩精品亚洲专区| 亚洲精品成人悠悠色影视| 久久久久久久国产精品影院| 91麻豆精品久久久久蜜臀| 91视视频在线观看入口直接观看www| 免费成人在线观看| 亚洲午夜在线电影| 中文字幕一区二区三区乱码在线| 欧美精品一区二区三区四区| 欧美日韩一卡二卡三卡 | 依依成人精品视频| 国产欧美日韩不卡免费| 欧美tk丨vk视频| 在线成人免费视频| 欧美在线一二三四区| 99视频热这里只有精品免费| 国产一区二区三区香蕉| 裸体在线国模精品偷拍| 午夜伦欧美伦电影理论片| 亚洲三级理论片| 国产精品久久久久久久久搜平片| 26uuu国产电影一区二区| 欧美一区二区视频网站| 91精品国产福利在线观看| 欧洲一区在线电影| 欧美日韩中文字幕一区| 在线观看欧美精品| 色菇凉天天综合网| 日本道精品一区二区三区| 91免费视频网址| 91福利社在线观看| 欧美日产国产精品| 欧美喷潮久久久xxxxx| 欧美日韩成人在线| 欧美一区二区三区的| 欧美成人vr18sexvr| 久久伊99综合婷婷久久伊| 国产亚洲欧美激情| 国产精品久久久久天堂| 亚洲色图视频免费播放| 一区二区三区高清不卡| 亚洲不卡av一区二区三区| 日日夜夜免费精品视频| 久久99精品一区二区三区| 激情五月婷婷综合网| 国产91在线观看| 97久久精品人人爽人人爽蜜臀 | 91精品国产综合久久香蕉麻豆| 欧美一区二区三区精品| 久久九九全国免费| 中文成人av在线| 亚洲线精品一区二区三区八戒| 婷婷亚洲久悠悠色悠在线播放| 另类小说视频一区二区| 国产成人鲁色资源国产91色综| 99在线精品视频| 欧美日韩在线电影| 久久蜜桃一区二区| 亚洲男同1069视频| 青青草原综合久久大伊人精品优势| 久久99精品国产| youjizz久久| 欧美一区二区女人| 国产欧美一区二区精品性色 | 欧美日韩一级黄| 久久久久久久久免费| 一区二区三区在线观看欧美| 免费成人你懂的| 在线一区二区三区做爰视频网站| 91精品国产91综合久久蜜臀| 国产精品福利影院| 久久精品国产一区二区三区免费看| 国产盗摄视频一区二区三区| 欧美午夜视频网站| 国产亚洲综合在线| 婷婷久久综合九色综合伊人色| 狠狠色狠狠色综合| 欧美日韩在线播放三区四区| 久久久久久一二三区| 视频一区二区中文字幕| 99久久婷婷国产综合精品| 欧美不卡一二三| 亚洲综合在线第一页| 成人综合婷婷国产精品久久蜜臀| 欧美日韩国产乱码电影| 亚洲日韩欧美一区二区在线| 日本91福利区| 欧美网站大全在线观看| 欧美国产一区视频在线观看| 日韩电影在线免费看| 色播五月激情综合网| 久久久国产午夜精品 | 成人动漫中文字幕| 久久久久久免费| 免费人成精品欧美精品| 欧美无乱码久久久免费午夜一区| 国产色综合久久| 奇米四色…亚洲| 欧美日韩三级一区| 亚洲精品成人少妇| 91丝袜美腿高跟国产极品老师 | 亚洲综合色噜噜狠狠| 91免费小视频| 国产精品国产精品国产专区不蜜| 精一区二区三区| 欧美一区二区三区男人的天堂| 一区二区三区精密机械公司| 中日韩av电影| 亚洲三级电影网站| 日韩精品成人一区二区在线| 91麻豆精东视频| 亚洲欧洲99久久| 色一区在线观看| 亚洲精选在线视频| 91麻豆免费在线观看| 国产精品久久久久aaaa樱花| 波多野结衣亚洲|