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

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

?? som_modify_dataset.m

?? 很全的som工具箱 四個demo可為初學(xué)者提夠幫助
?? 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一区二区三区免费野_久草精品视频
国产精品国产三级国产普通话99| 欧美bbbbb| 成人黄色av电影| 国产精品日产欧美久久久久| 99精品视频在线播放观看| 国产精品麻豆久久久| 91美女片黄在线| 亚洲国产精品久久人人爱| 欧美乱妇一区二区三区不卡视频| 男女男精品视频网| 久久久99精品免费观看不卡| av在线播放不卡| 亚洲精品水蜜桃| 在线综合视频播放| 国产精品自拍一区| 一区二区在线观看免费| 337p亚洲精品色噜噜| 国产乱人伦偷精品视频免下载| 中文字幕av资源一区| 欧美亚洲禁片免费| 久久99精品国产.久久久久久| 日本一区二区三区在线不卡| 色婷婷久久综合| 麻豆视频一区二区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 久久成人久久鬼色| 国产欧美久久久精品影院| 在线观看免费亚洲| 美女视频一区二区三区| 中文字幕一区二区三区视频| 欧美日韩国产精品成人| 国产精品一区二区在线看| 亚洲国产视频a| 国产亚洲欧美色| 欧美视频完全免费看| 国产成人精品www牛牛影视| 亚洲妇熟xx妇色黄| 国产女主播在线一区二区| 欧美日韩在线直播| 99精品欧美一区二区蜜桃免费| 日韩精品高清不卡| 一区二区在线观看视频| 久久久亚洲精品石原莉奈| 欧美日韩一区视频| 99久久免费国产| 国产精品18久久久久久久网站| 午夜精品福利一区二区三区蜜桃| 国产精品萝li| 国产清纯美女被跳蛋高潮一区二区久久w| 欧美视频三区在线播放| 99精品久久99久久久久| 国产精品一区二区黑丝| 日韩国产欧美在线观看| 一区二区在线观看视频| 国产精品久久久久久久久搜平片 | 久久精品一区二区三区四区| 欧美日韩色一区| 91浏览器打开| 99国内精品久久| 成人听书哪个软件好| 国产suv精品一区二区883| 另类的小说在线视频另类成人小视频在线| 亚洲黄色小说网站| 亚洲免费资源在线播放| 中文av字幕一区| 欧美激情自拍偷拍| 欧美—级在线免费片| 国产肉丝袜一区二区| 久久综合九色综合欧美98| 日韩精品专区在线影院观看| 欧美日韩中字一区| 欧美理论片在线| 91精品国产高清一区二区三区| 欧美日韩高清影院| 欧美日韩不卡在线| 91精品久久久久久蜜臀| 日韩视频免费观看高清完整版在线观看| 在线不卡免费欧美| 在线不卡中文字幕播放| 日韩欧美亚洲一区二区| 欧美不卡在线视频| 久久天天做天天爱综合色| 国产日韩精品一区二区三区在线| 国产日本欧美一区二区| 亚洲图片你懂的| 一级女性全黄久久生活片免费| 一区二区三区欧美激情| 丝袜美腿成人在线| 狠狠色综合日日| 风间由美性色一区二区三区| 99国产欧美另类久久久精品| 欧美做爰猛烈大尺度电影无法无天| 欧美性生活大片视频| 日韩三级伦理片妻子的秘密按摩| 欧美精品一区二区在线播放| 久久综合九色欧美综合狠狠| 国产精品久久久久久久久免费相片 | 麻豆91小视频| 国产露脸91国语对白| 成人免费va视频| 欧美亚洲图片小说| 日韩欧美不卡一区| 国产农村妇女毛片精品久久麻豆| 亚洲欧洲在线观看av| 亚洲高清在线精品| 国产精品影视网| 色综合激情五月| 精品久久久久久久久久久院品网 | 中文字幕在线观看一区| 亚洲.国产.中文慕字在线| 精品系列免费在线观看| 懂色av中文字幕一区二区三区| 日本韩国视频一区二区| 欧美成人性战久久| 亚洲精品成人精品456| 秋霞午夜av一区二区三区| www.99精品| 日韩视频一区二区在线观看| 亚洲素人一区二区| 韩国精品久久久| 91久久线看在观草草青青| xnxx国产精品| 亚洲成av人片一区二区三区| 国产精品一级二级三级| 欧美日韩成人综合在线一区二区| 欧美激情一区在线观看| 日韩在线观看一区二区| 成人免费观看男女羞羞视频| 717成人午夜免费福利电影| 国产精品嫩草99a| 丝袜诱惑制服诱惑色一区在线观看| 粉嫩av一区二区三区粉嫩| 欧美一级久久久久久久大片| 国产精品成人免费精品自在线观看 | 在线不卡一区二区| 亚洲欧美在线视频观看| 久久精品国内一区二区三区| 色综合久久综合中文综合网| 久久免费精品国产久精品久久久久| 一区av在线播放| av电影在线观看不卡| 久久先锋影音av| 蜜臀av性久久久久蜜臀aⅴ四虎 | 日韩久久久久久| 亚洲国产另类av| 91麻豆.com| 国产精品家庭影院| 国产91精品精华液一区二区三区| 欧美成人艳星乳罩| 免费一级欧美片在线观看| 欧美亚洲动漫精品| 中文字幕一区二区三| 成人综合日日夜夜| 久久久久成人黄色影片| 国模少妇一区二区三区| 欧美一级xxx| 天天影视涩香欲综合网| 欧美日韩在线直播| 一区二区三区成人在线视频| 色婷婷av一区二区三区之一色屋| 欧美国产乱子伦| 成人免费观看av| 国产精品色哟哟| 99re6这里只有精品视频在线观看| 欧美高清在线一区| www.av精品| 一区二区欧美视频| 欧美日精品一区视频| 午夜不卡在线视频| 91精品国产免费| 精品一区二区三区在线播放 | 国产传媒久久文化传媒| 精品国产1区二区| 国产一区美女在线| 国产亲近乱来精品视频 | 91福利小视频| 亚洲一区二区三区四区五区中文| 色琪琪一区二区三区亚洲区| 亚洲精品你懂的| 欧美高清视频www夜色资源网| 青青草一区二区三区| 精品成人在线观看| 成年人午夜久久久| 亚洲伦在线观看| 7777精品伊人久久久大香线蕉 | 亚洲欧美日韩系列| 欧美日韩亚洲国产综合| 麻豆精品国产传媒mv男同| 久久午夜免费电影| 91小视频免费观看| 日韩专区欧美专区| 久久精品欧美一区二区三区不卡| 99久久精品久久久久久清纯| 亚洲一区在线播放| 精品美女在线观看| 99视频一区二区三区| 丝袜亚洲精品中文字幕一区| 久久久蜜臀国产一区二区| 99久久99精品久久久久久| 日韩国产成人精品|