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

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

?? som_unit_coords.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
字號:
function Coords = som_unit_coords(topol,lattice,shape)%SOM_UNIT_COORDS Locations of units on the SOM grid. %% Co = som_unit_coords(topol, [lattice], [shape])% %  Co = som_unit_coords(sMap);%  Co = som_unit_coords(sMap.topol);%  Co = som_unit_coords(msize, 'hexa', 'cyl');%  Co = som_unit_coords([10 4 4], 'rect', 'toroid');%%  Input and output arguments ([]'s are optional): %   topol              topology of the SOM grid%             (struct) topology or map struct%             (vector) the 'msize' field of topology struct%   [lattice] (string) map lattice, 'rect' by default%   [shape]   (string) map shape, 'sheet' by default%%   Co        (matrix, size [munits k]) coordinates for each map unit    %% For more help, try 'type som_unit_coords' or check out online documentation.% See also SOM_UNIT_DISTS, SOM_UNIT_NEIGHS.%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_unit_coords%% PURPOSE%% Returns map grid coordinates for the units of a Self-Organizing Map.%% SYNTAX%%  Co = som_unit_coords(sTopol);%  Co = som_unit_coords(sM.topol);%  Co = som_unit_coords(msize);%  Co = som_unit_coords(msize,'hexa');%  Co = som_unit_coords(msize,'rect','toroid');%% DESCRIPTION%% Calculates the map grid coordinates of the units of a SOM based on % the given topology. The coordinates are such that they can be used to% position map units in space. In case of 'sheet' shape they can be % (and are) used to measure interunit distances. %% NOTE: for 'hexa' lattice, the x-coordinates of every other row are shifted % by +0.5, and the y-coordinates are multiplied by sqrt(0.75). This is done % to make distances of a unit to all its six neighbors equal. It is not % possible to use 'hexa' lattice with higher than 2-dimensional map grids.%% 'cyl' and 'toroid' shapes: the coordinates are initially determined as % in case of 'sheet' shape, but are then bended around the x- or the % x- and then y-axes to get the desired shape. % % POSSIBLE BUGS%% I don't know if the bending operation works ok for high-dimensional% map grids. Anyway, if anyone wants to make a 4-dimensional% toroid map, (s)he deserves it.%% REQUIRED INPUT ARGUMENTS% %  topol          Map grid dimensions.%        (struct) topology struct or map struct, the topology %                 (msize, lattice, shape) of the map is taken from %                 the appropriate fields (see e.g. SOM_SET)%        (vector) the vector which gives the size of the map grid%                 (msize-field of the topology struct).%  % OPTIONAL INPUT ARGUMENTS % %  lattice (string) The map lattice, either 'rect' or 'hexa'. Default%                   is 'rect'. 'hexa' can only be used with 1- or %                   2-dimensional map grids.%  shape   (string) The map shape, either 'sheet', 'cyl' or 'toroid'. %                   Default is 'sheet'. %% OUTPUT ARGUMENTS%%  Co   (matrix) coordinates for each map units, size is [munits k] %                where k is 2, or more if the map grid is higher%                dimensional or the shape is 'cyl' or 'toroid'%% EXAMPLES%% Simplest case:%  Co = som_unit_coords(sTopol);%  Co = som_unit_coords(sMap.topol);%  Co = som_unit_coords(msize);%  Co = som_unit_coords([10 10]);%% If topology is given as vector, lattice is 'rect' and shape is 'sheet'% by default. To change these, you can use the optional arguments:%  Co = som_unit_coords(msize, 'hexa', 'toroid');%% The coordinates can also be calculated for high-dimensional grids:%  Co = som_unit_coords([4 4 4 4 4 4]);%% SEE ALSO% %  som_unit_dists    Calculate interunit distance along the map grid.%  som_unit_neighs   Calculate neighborhoods of map units.% Copyright (c) 1997-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/% Version 1.0beta juuso 110997% Version 2.0beta juuso 101199 070600%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Check arguments error(nargchk(1, 3, nargin));% default valuessTopol = som_set('som_topol','lattice','rect');% topolif isstruct(topol),   switch topol.type,   case 'som_map', sTopol = topol.topol;  case 'som_topol', sTopol = topol;  endelseif iscell(topol),   for i=1:length(topol),     if isnumeric(topol{i}), sTopol.msize = topol{i};     elseif ischar(topol{i}),        switch topol{i},       case {'rect','hexa'}, sTopol.lattice = topol{i};       case {'sheet','cyl','toroid'}, sTopol.shape = topol{i};       end    end  endelse  sTopol.msize = topol;endif prod(sTopol.msize)==0, error('Map size is 0.'); end% latticeif nargin>1 & ~isempty(lattice) & ~isnan(lattice), sTopol.lattice = lattice; end% shape if nargin>2 & ~isempty(shape) & ~isnan(shape), sTopol.shape = shape; end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Actionmsize = sTopol.msize;lattice = sTopol.lattice;shape = sTopol.shape;% init variablesif length(msize)==1, msize = [msize 1]; endmunits = prod(msize);mdim = length(msize);Coords = zeros(munits,mdim);% initial coordinates for each map unit ('rect' lattice, 'sheet' shape)k = [1 cumprod(msize(1:end-1))]; inds = [0:(munits-1)]';for i = mdim:-1:1,   Coords(:,i) = floor(inds/k(i)); % these are subscripts in matrix-notation  inds = rem(inds,k(i)); end% change subscripts to coordinates (move from (ij)-notation to (xy)-notation)Coords(:,[1 2]) = fliplr(Coords(:,[1 2])); % 'hexa' latticeif strcmp(lattice,'hexa'),   % check  if mdim > 2,     error('You can only use hexa lattice with 1- or 2-dimensional maps.');  end  % offset x-coordinates of every other row   inds_for_row = (cumsum(ones(msize(2),1))-1)*msize(1);   for i=2:2:msize(1),     Coords(i+inds_for_row,1) = Coords(i+inds_for_row,1) + 0.5;   endend% shapesswitch shape, case 'sheet',   if strcmp(lattice,'hexa'),     % this correction is made to make distances to all     % neighboring units equal    Coords(:,2) = Coords(:,2)*sqrt(0.75);   endcase 'cyl',   % to make cylinder the coordinates must lie in 3D space, at least  if mdim<3, Coords = [Coords ones(munits,1)]; mdim = 3; end  % Bend the coordinates to a circle in the plane formed by x- and   % and z-axis. Notice that the angle to which the last coordinates  % are bended is _not_ 360 degrees, because that would be equal to   % the angle of the first coordinates (0 degrees).  Coords(:,1)     = Coords(:,1)/max(Coords(:,1));  Coords(:,1)     = 2*pi * Coords(:,1) * msize(2)/(msize(2)+1);  Coords(:,[1 3]) = [cos(Coords(:,1)) sin(Coords(:,1))];                    case 'toroid',   % NOTE: if lattice is 'hexa', the msize(1) should be even, otherwise   % the bending the upper and lower edges of the map do not match   % to each other  if strcmp(lattice,'hexa') & rem(msize(1),2)==1,     warning('Map size along y-coordinate is not even.');  end  % to make toroid the coordinates must lie in 3D space, at least  if mdim<3, Coords = [Coords ones(munits,1)]; mdim = 3; end  % First bend the coordinates to a circle in the plane formed  % by x- and z-axis. Then bend in the plane formed by y- and  % z-axis. (See also the notes in 'cyl').  Coords(:,1)     = Coords(:,1)/max(Coords(:,1));  Coords(:,1)     = 2*pi * Coords(:,1) * msize(2)/(msize(2)+1);  Coords(:,[1 3]) = [cos(Coords(:,1)) sin(Coords(:,1))];  Coords(:,2)     = Coords(:,2)/max(Coords(:,2));  Coords(:,2)     = 2*pi * Coords(:,2) * msize(1)/(msize(1)+1);  Coords(:,3)     = Coords(:,3) - min(Coords(:,3)) + 1;  Coords(:,[2 3]) = Coords(:,[3 3]) .* [cos(Coords(:,2)) sin(Coords(:,2))];  endreturn;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subfunctionsfunction C = bend(cx,cy,angle,xishexa)  dx = max(cx) - min(cx);  if dx ~= 0,     % in case of hexagonal lattice it must be taken into account that    % coordinates of every second row are +0.5 off to the right    if xishexa, dx = dx-0.5; end    cx = angle*(cx - min(cx))/dx;   end      C(:,1) = (cy - min(cy)+1) .* cos(cx);  C(:,2) = (cy - min(cy)+1) .* sin(cx);% end of bend%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区影视| 奇米四色…亚洲| 日韩三级中文字幕| 99久久精品国产一区二区三区 | 欧美性生活大片视频| 国产一区二区三区香蕉| 亚洲国产精品一区二区www | 在线播放国产精品二区一二区四区 | 久久久久久久久99精品| 欧美日韩第一区日日骚| 波多野结衣亚洲一区| 老鸭窝一区二区久久精品| 亚洲国产精品一区二区www| 国产精品久久久久久久久免费丝袜| 91精品国模一区二区三区| 91在线视频播放| 国产成人综合视频| 久热成人在线视频| 日韩国产欧美三级| 亚洲五码中文字幕| 亚洲免费伊人电影| 亚洲视频综合在线| 中文字幕一区三区| 中文字幕中文在线不卡住| 久久色.com| 欧美成人免费网站| 日韩精品一区二区三区中文精品| 欧美日韩国产在线观看| 日本精品免费观看高清观看| 91天堂素人约啪| 成人黄页毛片网站| 成人黄色国产精品网站大全在线免费观看| 精品一区中文字幕| 美腿丝袜亚洲色图| 精品一区二区免费看| 免费成人av在线| 久久超级碰视频| 韩国欧美一区二区| 国产精品一区二区在线观看网站| 国产在线国偷精品免费看| 激情五月激情综合网| 精品一区二区三区在线观看国产| 六月丁香综合在线视频| 激情综合网最新| 国产美女视频91| 国产成人自拍高清视频在线免费播放| 国产精品一区二区三区网站| 国产高清不卡一区二区| 国产经典欧美精品| av动漫一区二区| 欧美综合亚洲图片综合区| 欧美日韩精品欧美日韩精品一| 欧美三级电影网| 欧美一级久久久| 国产午夜精品福利| 亚洲乱码国产乱码精品精的特点| 亚洲激情校园春色| 天天射综合影视| 久久福利视频一区二区| 国产精品综合一区二区三区| 成人黄色软件下载| 欧美做爰猛烈大尺度电影无法无天| 欧美精品久久一区| 久久久精品国产免大香伊| 国产精品不卡在线| 偷拍亚洲欧洲综合| 国产精品一线二线三线| av中文字幕亚洲| 91精品国产一区二区| 国产三级欧美三级| 亚洲精品乱码久久久久久久久| 亚洲丰满少妇videoshd| 久久99精品久久久久久| av亚洲精华国产精华精| 91精品免费在线观看| 国产人成亚洲第一网站在线播放| 亚洲精品视频免费看| 精品影院一区二区久久久| 99精品国产一区二区三区不卡| 欧美久久久久中文字幕| 国产欧美视频一区二区| 亚洲国产精品久久久久秋霞影院 | 国产伦理精品不卡| 色婷婷精品久久二区二区蜜臀av| 91精品视频网| 综合激情成人伊人| 蜜桃视频一区二区三区| 91免费观看在线| 精品国产自在久精品国产| 亚洲日本中文字幕区| 久久国产精品99精品国产 | 色综合视频一区二区三区高清| 欧美高清hd18日本| 国产精品久久久久国产精品日日 | av中文字幕亚洲| 欧美mv日韩mv国产| 亚洲午夜精品在线| 东方欧美亚洲色图在线| 日韩午夜激情电影| 亚洲国产一区二区在线播放| 国产精品一区二区久久不卡| 欧美日韩国产免费一区二区| 中文成人av在线| 久久国产成人午夜av影院| 欧美视频完全免费看| 国产精品久久久久久户外露出 | 波多野结衣在线一区| 日韩精品中文字幕一区二区三区| 亚洲小说欧美激情另类| 99re这里只有精品首页| 国产三级欧美三级| 激情五月激情综合网| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲宅男天堂在线观看无病毒| 高潮精品一区videoshd| 欧美一级黄色片| 日韩精品电影在线| 欧美日韩精品一区视频| 一区二区三区在线看| 99久久综合色| 国产日本欧洲亚洲| 国产高清在线精品| 精品乱人伦一区二区三区| 男女男精品视频网| 欧美一级二级三级蜜桃| 青青草97国产精品免费观看| 欧美日韩高清影院| 日日骚欧美日韩| 欧美日韩中字一区| 亚洲国产一区在线观看| 欧美午夜寂寞影院| 洋洋av久久久久久久一区| 色狠狠av一区二区三区| 亚洲天堂2014| 色域天天综合网| 一区二区三区在线视频观看| 91蜜桃免费观看视频| 亚洲日本成人在线观看| 99热在这里有精品免费| 中文字幕一区二区三区四区不卡| 不卡av在线免费观看| 亚洲人成7777| 欧美日韩亚洲综合在线 | 精品中文av资源站在线观看| 欧美一区二区视频在线观看| 免费看日韩精品| 久久综合999| 成人av网站大全| 亚洲日本中文字幕区| 欧美影片第一页| 日本不卡123| 久久综合色8888| 不卡免费追剧大全电视剧网站| 亚洲视频在线一区观看| 欧美日高清视频| 国产又黄又大久久| 亚洲欧洲在线观看av| 欧美三区在线观看| 久久99热这里只有精品| 国产日本欧美一区二区| 91麻豆免费看| 免费久久99精品国产| 欧美韩日一区二区三区四区| 一本久久精品一区二区 | 不卡视频一二三四| 亚洲图片有声小说| 日韩欧美高清一区| 懂色av一区二区在线播放| 亚洲精品成人在线| 欧美成人福利视频| 99久久精品情趣| 婷婷开心激情综合| 国产欧美综合在线观看第十页| 在线视频亚洲一区| 国内精品伊人久久久久av影院| 亚洲欧洲日韩在线| 91精品免费在线| a4yy欧美一区二区三区| 日韩在线观看一区二区| 国产精品美女久久久久av爽李琼| 91精彩视频在线| 国产精品亚洲第一区在线暖暖韩国| 亚洲丝袜美腿综合| 久久综合色之久久综合| 日本久久一区二区三区| 国产资源在线一区| 亚洲国产精品一区二区www在线| 26uuu亚洲婷婷狠狠天堂| 欧美视频一区二区三区| 国产91高潮流白浆在线麻豆| 亚洲综合在线视频| 国产精品欧美综合在线| 91精品黄色片免费大全| 色综合久久88色综合天天6 | 99久久精品免费看国产| 韩国精品在线观看| 香蕉影视欧美成人| 亚洲欧美色综合| 国产欧美综合在线| 精品国产伦一区二区三区观看体验|