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

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

?? som_modify_dataset.m

?? 酒吧老板價格表vbkkljl個ipfgik皮帶 東風康帕斯飛 帕斯克哦佛i 日減肥假話騙人 歐冠歐賠健康的飛機
?? 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一区二区三区免费野_久草精品视频
久久激情五月婷婷| 麻豆一区二区三| 中文字幕欧美区| 久久久国产精品午夜一区ai换脸| 欧美r级电影在线观看| 日韩欧美区一区二| 久久亚洲一区二区三区明星换脸| 日韩一区二区三区四区| 日韩视频免费直播| 久久久不卡影院| 中文字幕第一区综合| 亚洲欧美在线视频| 亚洲婷婷综合久久一本伊一区| 中文字幕一区二区三区蜜月| 国产欧美一区二区精品性| 亚洲国产成人一区二区三区| 国产精品国产三级国产普通话99| 亚洲丝袜精品丝袜在线| 午夜精品一区在线观看| 麻豆精品视频在线观看视频| 国产一区二区三区在线观看精品 | 91久久精品国产91性色tv| 91久久精品一区二区三| 69精品人人人人| 久久精品一区二区三区四区| 国产精品美女久久久久久2018| 中文字幕一区二区三区av| 一区二区三区中文字幕| 婷婷久久综合九色国产成人| 日韩国产成人精品| 国产成人免费在线观看不卡| av电影在线观看完整版一区二区| 色婷婷亚洲婷婷| 精品1区2区在线观看| 亚洲天堂精品在线观看| 裸体一区二区三区| 91麻豆精品在线观看| 欧美一卡二卡在线| 亚洲人xxxx| 国内一区二区视频| 精品视频123区在线观看| 久久免费的精品国产v∧| 伊人开心综合网| 国产成人精品免费在线| 在线不卡的av| 亚洲精品一二三| 国产精品自拍一区| 欧美日韩一卡二卡三卡| 国产精品久久三区| 国产真实乱偷精品视频免| 91精品福利视频| 中文字幕巨乱亚洲| 日本欧美肥老太交大片| 欧洲激情一区二区| 久久精品欧美日韩| 日韩高清国产一区在线| 91论坛在线播放| 中文字幕乱码日本亚洲一区二区| 麻豆久久一区二区| 91精品国产手机| 亚洲一卡二卡三卡四卡无卡久久| 大胆欧美人体老妇| 欧美电影免费观看高清完整版在线 | 色婷婷国产精品| 国产精品美女视频| 成人视屏免费看| 2023国产精品视频| 激情文学综合丁香| 欧美白人最猛性xxxxx69交| 婷婷综合另类小说色区| 欧美在线观看一区二区| 亚洲精品写真福利| 色婷婷激情综合| 一区二区欧美在线观看| 色婷婷av一区二区三区大白胸| 亚洲欧洲一区二区在线播放| zzijzzij亚洲日本少妇熟睡| 国产精品青草综合久久久久99| 国产精品系列在线观看| 欧美激情艳妇裸体舞| 成人影视亚洲图片在线| 国产精品美女久久久久久2018| 成人午夜av影视| 中文字幕一区二区三区乱码在线| 99re热这里只有精品视频| 亚洲欧洲国产日本综合| 91麻豆精品视频| 亚洲一区二区五区| 日韩一区二区三区在线观看| 国产综合成人久久大片91| 久久久国产一区二区三区四区小说 | 欧洲色大大久久| 偷拍日韩校园综合在线| 欧美大片拔萝卜| 成人国产在线观看| 亚洲愉拍自拍另类高清精品| 在线成人午夜影院| 国产综合色产在线精品| 亚洲欧洲日韩在线| 欧美日韩成人高清| 国产精品一二三| 樱花影视一区二区| 日韩色视频在线观看| 成人精品免费网站| 亚洲与欧洲av电影| 久久婷婷国产综合精品青草| 99国内精品久久| yourporn久久国产精品| 天天影视色香欲综合网老头| 2020国产精品久久精品美国| 成人午夜视频网站| 午夜激情综合网| 国产精品乱码人人做人人爱| 欧美日韩国产免费一区二区| 国产成人综合视频| 亚洲第一会所有码转帖| 久久蜜桃一区二区| 欧美三级电影在线看| 成人中文字幕合集| 久久国产精品区| 亚洲一卡二卡三卡四卡| 久久青草欧美一区二区三区| 欧美日韩成人在线| 一本色道a无线码一区v| 国产一区二区在线影院| 图片区小说区区亚洲影院| 国产精品免费久久| 日韩欧美色电影| 717成人午夜免费福利电影| av在线播放成人| 国产伦精品一区二区三区免费| 日韩精品一级中文字幕精品视频免费观看 | 日韩一级片在线播放| 日本乱人伦aⅴ精品| 国产成人在线看| 麻豆精品一区二区三区| 婷婷成人激情在线网| 亚洲丝袜美腿综合| 国产精品久久久久久亚洲伦| 久久人人超碰精品| 精品国产一区二区三区久久久蜜月| 在线精品视频一区二区| 99久久精品国产一区| 丁香激情综合国产| 国产精品一区二区在线观看不卡 | 国产精品日韩精品欧美在线| 久久久99久久精品欧美| 精品国产一区二区三区久久久蜜月| 欧美视频一区在线| 在线日韩一区二区| 欧美色图激情小说| 欧美精品v日韩精品v韩国精品v| 色婷婷一区二区三区四区| 91麻豆产精品久久久久久 | 性欧美大战久久久久久久久| 一区二区三区免费网站| 亚洲美女屁股眼交3| 亚洲激情欧美激情| 亚洲gay无套男同| 天天影视涩香欲综合网| 麻豆精品视频在线观看免费| 精品系列免费在线观看| 国产福利精品导航| 99精品国产视频| 欧美亚洲精品一区| 欧美一区二区人人喊爽| 精品成人免费观看| 久久精品一区二区三区不卡牛牛 | 一本大道久久a久久精品综合| 91在线小视频| 欧美日韩国产首页| 日韩精品一区二区三区三区免费| 精品久久久久久久人人人人传媒| 欧美电影免费观看高清完整版在线观看 | 国产人伦精品一区二区| 国产精品高潮呻吟| 亚洲成年人网站在线观看| 久久精品理论片| 99久免费精品视频在线观看| 在线观看日韩电影| 精品日韩99亚洲| 成人免费一区二区三区视频| 亚洲国产视频a| 国产一区二区三区日韩| 91在线播放网址| 日韩一区二区中文字幕| 国产欧美一区二区精品忘忧草| 亚洲黄色免费网站| 久热成人在线视频| 色94色欧美sute亚洲线路一ni | 欧美午夜视频网站| 久久久91精品国产一区二区三区| 亚洲视频在线一区二区| 日韩精品电影在线观看| 成人美女视频在线观看18| 欧美伦理影视网| 国产精品久久久久一区| 麻豆精品在线播放| 欧洲精品中文字幕| 国产精品久久三区|