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

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

?? som_unit_dists.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
字號(hào):
function Ud = som_unit_dists(topol,lattice,shape)%SOM_UNIT_DISTS Distances between unit-locations on the map grid.%% Ud = som_unit_dists(topol,[lattice],[shape])% %  Ud = som_unit_dists(sMap);%  Ud = som_unit_dists(sMap.topol);%  Ud = som_unit_dists(msize, 'hexa', 'cyl');%  Ud = som_unit_dists([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%%   Ud        (matrix, size [munits munits]) distance from each map unit %                      to each map unit%% For more help, try 'type som_unit_dists' or check out online documentation.% See also SOM_UNIT_COORDS, SOM_UNIT_NEIGHS.%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_unit_dists%% PURPOSE%% Returns interunit distances between the units of a Self-Organizing Map% along the map grid.%% SYNTAX%%  Ud = som_unit_dists(sTopol);%  Ud = som_unit_dists(sM.topol);%  Ud = som_unit_dists(msize);%  Ud = som_unit_dists(msize,'hexa');%  Ud = som_unit_dists(msize,'rect','toroid');%% DESCRIPTION%% Calculates the distances between the units of a SOM based on the % given topology. The distance are euclidian and they are measured% along the map grid (in the output space). %% In case of 'sheet' shape, the distances can be measured directly% from the unit coordinates given by SOM_UNIT_COORDS. %% In case of 'cyl' and 'toroid' shapes this is not so. In these cases% the coordinates are calculated as in the case of 'sheet' shape and% the shape is then taken into account by shifting the map grid into% different positions. %% Consider, for example, a 4x3 map. The basic position of map units % is shown on the left (with '1' - 'C' each denoting one map unit). % In case of a 'cyl' shape, units on the left and right edges are% neighbors, so for this purpose the map is copied on the left and% right sides of the map, as on right. %%    basic               left     basic    right%    -------             -------  -------  -------%    1  5  9             1  5  9  1  5  9  1  5  9%    2  6  a             2  6  a  2  6  a  2  6  a  %    3  7  b             3  7  b  3  7  b  3  7  b %    4  8  c             4  8  c  4  8  c  4  8  c % % For the 'toroid' shape a similar trick is done, except that the % copies are placed all around the basic position:%%             1  5  9  1  5  9  1  5  9%             2  6  a  2  6  a  2  6  a  %             3  7  b  3  7  b  3  7  b %             4  8  c  4  8  c  4  8  c %             1  5  9  1  5  9  1  5  9%             2  6  a  2  6  a  2  6  a  %             3  7  b  3  7  b  3  7  b %             4  8  c  4  8  c  4  8  c %             1  5  9  1  5  9  1  5  9%             2  6  a  2  6  a  2  6  a  %             3  7  b  3  7  b  3  7  b %             4  8  c  4  8  c  4  8  c %% From this we can see that the distance from unit '1' is 1 to units% '9','2','4' and '5', and sqrt(2) to units 'C','A','8' and '6'. Notice % that in the case of a 'hexa' lattice and 'toroid' shape, the size% of the map in y-direction should be even. The reason can be clearly% seen from the two figures below. On the left the basic positions for% a 3x3 map. If the map is copied above itself, it can be seen that the% lattice is broken (on the right):%%     basic positions                 example of broken lattice%     ---------------                 -------------------------%                                     1  4  7 %                                      2  5  8%                                     3  6  9%     1  4  7                         1  4  7 %      2  5  8                         2  5  8%     3  6  9                         3  6  9%% % 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%%  Ud   (matrix) distances from each map unit to each other map unit,%                size is [munits munits]%% EXAMPLES%% Simplest case:%  Ud = som_unit_dists(sTopol);%  Ud = som_unit_dists(sMap.topol);%  Ud = som_unit_dists(msize);%  Ud = som_unit_dists([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:%  Ud = som_unit_dists(msize, 'hexa', 'toroid');%% The distances can also be calculated for high-dimensional grids:%  Ud = som_unit_dists([4 4 4 4 4 4]);%% SEE ALSO% %  som_unit_coords   Calculate grid coordinates.%  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 170400 070600 130600%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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;munits = prod(msize);Ud = zeros(munits,munits);% free topologyif strcmp(lattice,'free'),  N1 = sTopol.connection;   Ud = som_neighborhood(N1,Inf);end% coordinates of map units when the grid is spread on a planeCoords = som_unit_coords(msize,lattice,'sheet');% width and height of the griddx = max(Coords(:,1))-min(Coords(:,1));if msize(1)>1, dx = dx*msize(1)/(msize(1)-1); else dx = dx+1; enddy = max(Coords(:,2))-min(Coords(:,2));if msize(2)>1, dy = dy*msize(2)/(msize(2)-1); else dy = dy+1; end% calculate distance from each location to each other locationswitch shape, case 'sheet',  for i=1:(munits-1),     inds = [(i+1):munits];     Dco = (Coords(inds,:) - Coords(ones(munits-i,1)*i,:))';     Ud(i,inds) = sqrt(sum(Dco.^2));  endcase 'cyl',   for i=1:(munits-1),     inds = [(i+1):munits];     Dco  = (Coords(inds,:) - Coords(ones(munits-i,1)*i,:))';     dist = sum(Dco.^2);    % The cylinder shape is taken into account by adding and substracting    % the width of the map (dx) from the x-coordinate (ie. shifting the    % map right and left).    DcoS = Dco; DcoS(1,:) = DcoS(1,:) + dx;  %East (x+dx)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(1,:) = DcoS(1,:) - dx;  %West (x-dx)    dist = min(dist,sum(DcoS.^2));    Ud(i,inds) = sqrt(dist);  endcase 'toroid',   for i=1:(munits-1),     inds = [(i+1):munits];     Dco  = (Coords(inds,:) - Coords(ones(munits-i,1)*i,:))';     dist = sum(Dco.^2);     % The toroid shape is taken into account as the cylinder shape was     % (see above), except that the map is shifted also vertically.    DcoS = Dco; DcoS(1,:) = DcoS(1,:) + dx;  %East (x+dx)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(1,:) = DcoS(1,:) - dx;  %West (x+dx)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(2,:) = DcoS(2,:) + dy;  %South (y+dy)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(2,:) = DcoS(2,:) - dy;  %North (y-dy)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(1,:) = DcoS(1,:) + dx; DcoS(2,:) = DcoS(2,:) - dy; %NorthEast (x+dx, y-dy)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(1,:) = DcoS(1,:) + dx; DcoS(2,:) = DcoS(2,:) + dy; %SouthEast (x+dx, y+dy)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(1,:) = DcoS(1,:) - dx; DcoS(2,:) = DcoS(2,:) + dy; %SouthWest (x-dx, y+dy)    dist = min(dist,sum(DcoS.^2));    DcoS = Dco; DcoS(1,:) = DcoS(1,:) - dx; DcoS(2,:) = DcoS(2,:) - dy; %NorthWest (x-dx, y-dy)    dist = min(dist,sum(DcoS.^2));    Ud(i,inds) = sqrt(dist);  endotherwise,   error (['Unknown shape: ', shape]);endUd = Ud + Ud';%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品麻豆| 视频一区视频二区中文字幕| 欧美日韩在线观看一区二区| 国产一区二区毛片| 日韩制服丝袜先锋影音| 综合在线观看色| 国产清纯美女被跳蛋高潮一区二区久久w | 成人不卡免费av| 毛片av一区二区三区| 亚洲另类色综合网站| 国产欧美一区二区精品性| 91精品国产高清一区二区三区蜜臀 | 亚洲一区二区四区蜜桃| 国产精品人妖ts系列视频| 精品久久久网站| 欧美一卡2卡三卡4卡5免费| 91黄色免费版| 91碰在线视频| 成人av资源站| 成人av网在线| 成人影视亚洲图片在线| 国产精品自拍在线| 国内外成人在线| 久久不见久久见中文字幕免费| 图片区小说区区亚洲影院| 亚洲精品videosex极品| 亚洲色图制服诱惑| 亚洲天堂2014| 亚洲视频在线一区二区| 亚洲欧洲成人av每日更新| 国产目拍亚洲精品99久久精品| 欧美精品一区二区三区蜜桃| 精品久久久三级丝袜| 日韩视频免费观看高清完整版 | 91网上在线视频| 色狠狠色狠狠综合| 精品视频一区二区不卡| 欧美日本在线看| 日韩一区二区三区视频| 日韩免费一区二区三区在线播放| 日韩色在线观看| 久久久久久久综合色一本| 国产日韩三级在线| 综合久久综合久久| 夜夜爽夜夜爽精品视频| 天天爽夜夜爽夜夜爽精品视频| 日韩精品一卡二卡三卡四卡无卡| 视频一区二区不卡| 久久99久久久久| 国产精品1024久久| 91看片淫黄大片一级在线观看| 一本久道久久综合中文字幕| 欧美日免费三级在线| 欧美一级欧美三级在线观看| 久久这里只有精品视频网| 国产精品拍天天在线| 亚洲综合色噜噜狠狠| 午夜精品国产更新| 国模大尺度一区二区三区| 成人免费毛片嘿嘿连载视频| 色哟哟国产精品| 欧美一区二区在线免费观看| 久久久激情视频| 亚洲伊人伊色伊影伊综合网| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产很黄免费观看久久| 99久久久免费精品国产一区二区| 欧美日韩一区在线| 久久影院午夜论| 一区二区三区欧美视频| 久久精品国产免费| 99精品视频一区| 日韩一区二区三区在线| 国产精品超碰97尤物18| 午夜精品福利久久久| 国产.欧美.日韩| 欧美群妇大交群的观看方式| 欧美精品一区二区三区蜜臀| 亚洲精品网站在线观看| 激情五月婷婷综合| 欧美主播一区二区三区| 亚洲精品一区二区三区精华液| 综合色中文字幕| 狠狠色丁香婷婷综合| 在线视频一区二区免费| 久久久亚洲高清| 天堂蜜桃一区二区三区| www.性欧美| www久久久久| 日韩精品亚洲专区| 一道本成人在线| 日本一区二区三区国色天香| 视频一区视频二区中文| 91丨porny丨最新| 精品国产一区久久| 婷婷综合另类小说色区| 91小视频在线免费看| 久久网这里都是精品| 午夜日韩在线电影| 91猫先生在线| 国产精品毛片无遮挡高清| 日本女优在线视频一区二区| 色婷婷综合视频在线观看| 久久久91精品国产一区二区精品 | 亚洲黄色小视频| 丰满少妇久久久久久久| 欧美一区二区在线不卡| 夜夜亚洲天天久久| 97国产一区二区| 国产精品久久久久一区二区三区 | 91麻豆国产福利在线观看| 久久久精品一品道一区| 老司机精品视频在线| 7777精品伊人久久久大香线蕉最新版| 亚洲欧美日韩电影| 99久久精品免费观看| 国产精品久久久久7777按摩| 国产伦精品一区二区三区免费| 欧美一区二区网站| 日韩国产一区二| 欧美久久婷婷综合色| 亚洲成人激情综合网| 欧美影视一区二区三区| 亚洲精选在线视频| 91猫先生在线| 一区二区三区四区乱视频| 色婷婷av久久久久久久| 亚洲最大的成人av| 欧美色视频在线观看| 夜夜嗨av一区二区三区网页| 91福利视频在线| 亚洲成人在线免费| 欧美绝品在线观看成人午夜影视| 天天做天天摸天天爽国产一区 | 风间由美性色一区二区三区| 中文字幕免费不卡| 99视频热这里只有精品免费| 国产精品久久午夜| 色综合天天综合网天天看片| 亚洲精品成人悠悠色影视| 欧美自拍偷拍午夜视频| 亚洲1区2区3区视频| 91精品婷婷国产综合久久| 美女任你摸久久| 久久亚洲精品小早川怜子| 高清在线不卡av| 亚洲免费av观看| 欧美日韩一区二区在线视频| 日本美女视频一区二区| 日韩欧美黄色影院| 国产99久久精品| 亚洲美女区一区| 欧美一区二区福利视频| 国产做a爰片久久毛片| 国产精品网曝门| 欧美日韩一区二区三区视频| 免费在线观看视频一区| 久久久久久久久岛国免费| 99国产精品久久久久| 亚洲第一福利一区| 欧美精品一区二区不卡| 99久久免费精品高清特色大片| 亚洲国产精品久久久男人的天堂| 欧美成人video| 色综合久久中文综合久久97| 日韩高清中文字幕一区| 国产视频一区二区在线观看| 欧美做爰猛烈大尺度电影无法无天| 日本成人在线看| 中文字幕一区二区三区蜜月| 欧美日韩第一区日日骚| 国产麻豆日韩欧美久久| 亚洲国产日韩精品| 久久五月婷婷丁香社区| 日本高清免费不卡视频| 精品一区二区三区日韩| 亚洲色图欧洲色图| 久久亚洲综合色一区二区三区| 一本色道亚洲精品aⅴ| 九九热在线视频观看这里只有精品 | 精品国产乱码久久久久久浪潮| av不卡免费在线观看| 蜜桃久久av一区| 日韩伦理电影网| 精品国产一区二区三区av性色| 91网站在线播放| 国产成人综合在线观看| 日韩福利视频导航| 亚洲精品日产精品乱码不卡| 久久麻豆一区二区| 91精品婷婷国产综合久久| 一本色道久久综合亚洲aⅴ蜜桃| 国内久久婷婷综合| 日韩av网站免费在线| 亚洲免费视频成人| 欧美激情在线观看视频免费| 日韩免费一区二区| 6080国产精品一区二区| 91极品视觉盛宴| 成人听书哪个软件好|