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

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

?? som_topol_struct.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
字號:
function sTopol = som_topol_struct(varargin)%SOM_TOPOL_STRUCT Default values for SOM topology.%% sT = som_topol_struct([[argID,] value, ...])%%  sTopol = som_topol_struct('data',D); %  sTopol = som_topol_struct('data',D,'munits',200); %  sTopol = som_topol_struct(sTopol); %  sTopol = som_topol_struct; % %  Input and output arguments ([]'s are optional): %    [argID,  (string) Default map topology depends on a number of %     value]  (varies) factors (see below). These are given as a %                      argument ID - argument value pairs, listed below.%%    sT       (struct) The ready topology struct.%% Topology struct contains values for map size, lattice (default is 'hexa')% and shape (default is 'sheet'). Map size depends on training data and the% number of map units. The number of map units depends on number of training% samples.%% Here are the valid argument IDs and corresponding values. The values which% are unambiguous (marked with '*') can be given without the preceeding argID.%  'dlen'         (scalar) length of the training data%  'data'         (matrix) the training data%                *(struct) the training data%  'munits'       (scalar) number of map units%  'msize'        (vector) map size%  'lattice'     *(string) map lattice: 'hexa' or 'rect'%  'shape'       *(string) map shape: 'sheet', 'cyl' or 'toroid'%  'topol'       *(struct) incomplete topology struct: its empty fields %                          will be given values%  'som_topol','sTopol'    = 'topol'%% For more help, try 'type som_topol_struct' or check out online documentation.% See also SOM_SET, SOM_TRAIN_STRUCT, SOM_MAKE.%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_topol_struct%% PURPOSE%% Default values for map topology and training parameters.%% SYNTAX%%  sT = som_topol_struct('argID',value,...);%  sT = som_topol_struct(value,...);%% DESCRIPTION%% This function is used to give sensible values for map topology (ie. map% size). The topology struct is returned. %% The topology struct has three fields: '.msize', '.lattice' and% '.shape'. Of these, default value for '.lattice' is 'hexa' and for% '.shape' 'sheet'. Only the '.msize' field depends on the optional% arguments: 'dlen', 'munits' and 'data'.  The value for '.msize' field is% determined as follows.%% First, the number of map units is determined (unless it is given). A% heuristic formula of 'munits = 5*sqrt(dlen)' is used to calculate% it. After this, the map size is determined. Basically, the two biggest% eigenvalues of the training data are calculated and the ratio between% sidelengths of the map grid is set to the square root of this ratio. The% actual sidelengths are then set so that their product is as close to the% desired number of map units as possible. If the lattice of the grid is% 'hexa', the ratio is modified a bit to take it into account. If the% lattice is 'hexa' and shape is 'toroid', the map size along the first axis% must be even.%  % OPTIONAL INPUT ARGUMENTS %%  argID (string) Argument identifier string (see below).%  value (varies) Value for the argument (see below).%%  The optional arguments can be given as 'argID',value -pairs. If an%  argument is given value multiple times, the last one is%  used. The valid IDs and corresponding values are listed below. The values %  which are unambiguous (marked with '*') can be given without the %  preceeding argID.%%  'dlen'         (scalar) length of the training data%  'data'         (matrix) the training data%                *(struct) the training data%  'munits'       (scalar) number of map units%  'msize'        (vector) map size%  'lattice'     *(string) map lattice: 'hexa' or 'rect'%  'shape'       *(string) map shape: 'sheet', 'cyl' or 'toroid'%  'topol'       *(struct) incomplete topology struct: its empty fields %                          will be given values%  'som_topol','sTopol'    = 'topol'%% OUTPUT ARGUMENTS% %  sT     (struct) The topology struct.%% EXAMPLES%%  The most important optional argument for the default topology is 'data'.%  To get a default topology (given data) use:%%    sTopol = som_topol_struct('data',D); %%  This sets lattice to its default value 'hexa'. If you want to have a%  'rect' lattice instead: %%    sTopol = som_topol_struct('data',D,'lattice','rect');%     or %    sTopol = som_topol_struct('data',D,'rect');%%  If you want to have (close to) a specific number of map units, e.g. 100: %%    sTopol = som_topol_struct('data',D,'munits',100);%% SEE ALSO%%  som_make         Initialize and train a map using default parameters.%  som_train_struct Default training parameters.%  som_randinint    Random initialization algorithm.%  som_lininit      Linear initialization algorithm.%  som_seqtrain     Sequential training algorithm.%  som_batchtrain   Batch training algorithm.% Copyright (c) 1999-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/% Version 2.0alpha juuso 060898 250399 070499 050899 240801%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% check arguments% initializesTopol = som_set('som_topol','lattice','hexa','shape','sheet'); D = [];dlen = NaN;dim = 2; munits = NaN;% varargini=1; while i<=length(varargin),   argok = 1;   if ischar(varargin{i}),     switch varargin{i},      case 'dlen',       i=i+1; dlen = varargin{i};      case 'munits',     i=i+1; munits = varargin{i}; sTopol.msize = 0;     case 'msize',      i=i+1; sTopol.msize = varargin{i};      case 'lattice',    i=i+1; sTopol.lattice = varargin{i};      case 'shape',      i=i+1; sTopol.shape = varargin{i};      case 'data',             i=i+1;       if isstruct(varargin{i}), D = varargin{i}.data;       else D = varargin{i};       end      [dlen dim] = size(D);      case {'hexa','rect'}, sTopol.lattice = varargin{i};      case {'sheet','cyl','toroid'}, sTopol.shape = varargin{i};     case {'som_topol','sTopol','topol'},       i=i+1;      if ~isempty(varargin{i}.msize) & prod(varargin{i}.msize), 	sTopol.msize = varargin{i}.msize;       end      if ~isempty(varargin{i}.lattice), sTopol.lattice = varargin{i}.lattice; end         if ~isempty(varargin{i}.shape), sTopol.shape = varargin{i}.shape; end     otherwise argok=0;     end  elseif isstruct(varargin{i}) & isfield(varargin{i},'type'),     switch varargin{i}.type,      case 'som_topol',      if ~isempty(varargin{i}.msize) & prod(varargin{i}.msize), 	sTopol.msize = varargin{i}.msize;       end      if ~isempty(varargin{i}.lattice), sTopol.lattice = varargin{i}.lattice; end         if ~isempty(varargin{i}.shape), sTopol.shape = varargin{i}.shape; end     case 'som_data',       D = varargin{i}.data;       [dlen dim] = size(D);            otherwise argok=0;     end  else    argok = 0;   end  if ~argok,     disp(['(som_topol_struct) Ignoring invalid argument #' num2str(i)]);   end  i = i+1; end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% action - topology struct% lattice and shape set already, so if msize is also set, there's% nothing else to doif prod(sTopol.msize) & ~isempty(sTopol.msize), return; end% otherwise, decide msize % first (if necessary) determine the number of map units (munits)if isnan(munits),   if ~isnan(dlen),     munits = ceil(5 * dlen^0.5); % this is just one way to make a guess...  else    munits = 100; % just a convenient value  endend% then determine the map size (msize)if dim == 1, % 1-D data  sTopol.msize = [1 ceil(munits)]; elseif size(D,1)<2, % eigenvalues cannot be determined since there's no data  sTopol.msize = round(sqrt(munits));   sTopol.msize(2) = round(munits/sTopol.msize(1));else % determine map size based on eigenvalues    % initialize xdim/ydim ratio using principal components of the input  % space; the ratio is the square root of ratio of two largest eigenvalues	    % autocorrelation matrix  A = zeros(dim)+Inf;  for i=1:dim, D(:,i) = D(:,i) - mean(D(isfinite(D(:,i)),i)); end    for i=1:dim,     for j=i:dim,       c = D(:,i).*D(:,j); c = c(isfinite(c));      A(i,j) = sum(c)/length(c); A(j,i) = A(i,j);     end  end    % take mdim first eigenvectors with the greatest eigenvalues  [V,S]   = eig(A);  eigval  = diag(S);  [y,ind] = sort(eigval);   eigval  = eigval(ind);    %me     = mean(D);  %D      = D - me(ones(length(ind),1),:); % remove mean from data  %eigval = sort(eig((D'*D)./size(D,1)));   if eigval(end)==0 | eigval(end-1)*munits<eigval(end),     ratio = 1;   else    ratio  = sqrt(eigval(end)/eigval(end-1)); % ratio between map sidelengths  end    % in hexagonal lattice, the sidelengths are not directly   % proportional to the number of units since the units on the   % y-axis are squeezed together by a factor of sqrt(0.75)  if strcmp(sTopol.lattice,'hexa'),     sTopol.msize(2)  = min(munits, round(sqrt(munits / ratio * sqrt(0.75))));  else    sTopol.msize(2)  = min(munits, round(sqrt(munits / ratio)));  end  sTopol.msize(1)  = round(munits / sTopol.msize(2));    % if actual dimension of the data is 1, make the map 1-D      if min(sTopol.msize) == 1, sTopol.msize = [1 max(sTopol.msize)]; end;    % a special case: if the map is toroid with hexa lattice,   % size along first axis must be even  if strcmp(sTopol.lattice,'hexa') & strcmp(sTopol.shape,'toroid'),     if mod(sTopol.msize(1),2), sTopol.msize(1) = sTopol.msize(1) + 1; end  endend  return;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区在线| 亚洲乱码国产乱码精品精小说| 91老师国产黑色丝袜在线| 精品一区二区日韩| 久久精品国产99久久6| 奇米一区二区三区| 日本美女一区二区三区视频| 性做久久久久久| 青青草一区二区三区| 肉色丝袜一区二区| 免费一级欧美片在线观看| 日韩国产欧美在线播放| 日本大胆欧美人术艺术动态| 日韩国产在线观看一区| 久久国产尿小便嘘嘘| 国产精品一区在线观看乱码| 国产激情一区二区三区| 成人av资源站| 在线观看亚洲成人| 日韩精品一区二| 久久久亚洲综合| 亚洲欧美日韩国产一区二区三区 | **欧美大码日韩| 亚洲欧洲99久久| 亚洲v中文字幕| 日韩国产欧美一区二区三区| 久久99精品久久久久久国产越南| 国产美女在线观看一区| av在线播放成人| 欧美一区二区三区系列电影| 久久久久久久久久久久久久久99 | 亚洲国产精品影院| 亚洲午夜电影在线观看| 蜜桃av一区二区在线观看| 国产精一品亚洲二区在线视频| 国产69精品久久777的优势| 欧美在线不卡一区| 欧美成人在线直播| 亚洲精品视频自拍| 国产激情91久久精品导航| 色呦呦网站一区| 国产亚洲欧洲一区高清在线观看| 伊人婷婷欧美激情| 精品一区二区三区免费视频| 99国产精品99久久久久久| 日韩视频在线一区二区| 亚洲视频一区二区在线| 国内国产精品久久| 777亚洲妇女| 亚洲精品中文在线影院| 国产综合色精品一区二区三区| 欧美日韩亚洲另类| 国产无人区一区二区三区| 日韩激情一区二区| 色婷婷av一区二区三区gif| 久久久.com| 久久电影网站中文字幕| 欧美特级限制片免费在线观看| 久久亚洲一区二区三区四区| 丝袜诱惑制服诱惑色一区在线观看| 国产一区二区在线观看免费| 欧美肥胖老妇做爰| 国产精品一二一区| 91麻豆精品国产自产在线观看一区 | 国产成人aaaa| 久久色.com| 激情av综合网| 日韩午夜电影av| 奇米综合一区二区三区精品视频| 色狠狠色狠狠综合| 亚洲乱码精品一二三四区日韩在线| 福利一区二区在线观看| 久久久亚洲国产美女国产盗摄| 日本视频在线一区| 日韩视频免费观看高清在线视频| 亚洲一区二区三区中文字幕在线| 色av综合在线| 一区二区三区.www| 日本乱码高清不卡字幕| 亚洲欧美日韩国产一区二区三区 | 国内精品在线播放| 日韩欧美区一区二| 黑人巨大精品欧美一区| 日韩精品专区在线影院观看| 日韩中文字幕一区二区三区| 在线成人av影院| 蜜臀99久久精品久久久久久软件| 6080午夜不卡| 久久99精品久久久| 国产日韩成人精品| 成人精品视频一区二区三区尤物| 国产欧美精品区一区二区三区| 国产麻豆成人精品| 综合激情成人伊人| 91久久国产综合久久| 午夜精品视频在线观看| 日韩精品中文字幕一区二区三区 | 亚洲一区二区三区四区在线观看| 91黄色小视频| 日本在线观看不卡视频| 久久综合九色综合97_久久久| 成人一区二区三区视频在线观看| 一区在线中文字幕| 欧美人与性动xxxx| 国产一区二区免费看| 亚洲欧美一区二区久久| 欧美精品一二三四| 粉嫩欧美一区二区三区高清影视| 亚洲品质自拍视频| 欧美一区二区观看视频| 成人性视频免费网站| 亚洲成人7777| 日本一区二区成人在线| 欧美色窝79yyyycom| 国产在线观看免费一区| 一区二区三区四区在线播放| 日韩女优av电影| 99re热这里只有精品免费视频| 亚洲福利一区二区三区| 国产视频在线观看一区二区三区 | 国产精品一区二区在线观看不卡| 亚洲一区在线观看视频| 久久九九99视频| 欧美日韩激情一区| 波多野结衣精品在线| 久久国产免费看| 亚洲午夜久久久久久久久电影院| 日本一区二区三级电影在线观看 | 精品国产一区二区三区久久久蜜月 | 中文字幕免费观看一区| 6080亚洲精品一区二区| 在线观看国产91| 99国产精品久| aaa欧美日韩| 国产成人超碰人人澡人人澡| 日本不卡一二三区黄网| 一区二区三区高清在线| 成人免费在线视频观看| 国产天堂亚洲国产碰碰| 精品久久久久久久久久久久包黑料 | 高清成人在线观看| 经典三级在线一区| 美女视频黄免费的久久 | 91精品国产福利在线观看| 91在线无精精品入口| 国产最新精品免费| 韩国v欧美v亚洲v日本v| 精品无人区卡一卡二卡三乱码免费卡| 亚洲电影欧美电影有声小说| 亚洲一区免费在线观看| 亚洲免费观看高清| 一区二区理论电影在线观看| 亚洲欧洲韩国日本视频| 最新不卡av在线| 最新不卡av在线| 国产精品成人午夜| 日本欧洲一区二区| 91浏览器入口在线观看| 成人高清免费观看| 国产精品18久久久久久久网站| 精品一区二区在线视频| 精品一区二区三区的国产在线播放 | 欧美网站一区二区| 成人av免费在线观看| 中文字幕av一区二区三区免费看| 一区二区三区日韩精品| 国产乱子伦一区二区三区国色天香| 一本一道久久a久久精品综合蜜臀| 制服丝袜av成人在线看| **欧美大码日韩| 国产精品香蕉一区二区三区| 欧美日韩在线观看一区二区| 国产精品无遮挡| 久久超碰97人人做人人爱| 欧美亚洲国产一区在线观看网站| 国产午夜精品一区二区三区四区| 午夜精品久久久久久不卡8050| 成人精品小蝌蚪| 精品国产百合女同互慰| 日韩精品午夜视频| 欧美在线观看禁18| 亚洲精品亚洲人成人网| 懂色av一区二区三区蜜臀| 精品国产乱码久久久久久老虎 | 欧美性xxxxx极品少妇| 国产亚洲一区字幕| 免费在线观看成人| 69久久夜色精品国产69蝌蚪网| 亚洲精品欧美专区| 99久久婷婷国产| 国产视频一区不卡| 国产精品中文字幕日韩精品| 欧美成人r级一区二区三区| 日韩福利电影在线观看| 欧美色视频一区| 五月天一区二区| 欧美精品久久99久久在免费线| 亚洲图片欧美色图| 欧美三级在线播放| 日韩精品一二三|