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

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

?? som_grid.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
?? 第 1 頁 / 共 2 頁
字號:
function [S,m,l,t,s]=som_grid(varargin)%SOM_GRID Visualization of a SOM grid%% [sGrid,m,l,t,s]=som_grid(sGrid, ['argID', value, ...])% [sGrid,m,l,t,s]=som_grid(topol, ['argID', value, ...])% [sGrid,m,l,t,s]=som_grid(lattice, msize, ['argID', value, ...])%% Input and output arguments ([]'s are optional)%  sGrid    (struct) som_grid struct (see output arguments)%  topol    (struct) map or topol struct for giving the topology%           (cell array) of form {'lattice', msize, ['shape']}. %                    Default value for 'shape' is 'sheet'.%  lattice  (string) 'hexa', 'rect' %           (matrix) size M x M, defines topological connections             %  msize    (vector) 1x2 vector defines the grid size, M=msize(1)*msize(2)%  ['argID',(string) Other arguments can be given as 'argID', value   %   value]  (varies) pairs. See list below for valid values.%%  sGrid    (struct) with fields S.msize, S.shape, S.lattice, S.coord, S.marker, %                    S.markersize, S.markercolor, S.line, S.linewidth, S.linecolor,%                    S.surf, S.label, S.labelsize, S.labelcolor%  m        (matrix) handels to LINE objects (unit markers) %  l        (matrix) handles to LINE objects (lines connecting the units)%  t        (matrix) handles to TEXT objects (labels)%  s        (scalar) handle  to SURF object  (surface between units)%%  Here are the valid argument IDs (case insensitive) and%  associated values: %  'Coord'       Mx2 or Mx3 matrix of coordinates %                (default: according to lattice as in som_cplane)%  'Marker'      string 'o','+','x','*','v','^','<','>','h','s','d','p','.', %                'none' or Mx1 cell or char array of these strings %                Default: 'o'.  %  'MarkerSize'  scalar or Mx1 matrix of double. Default: 6.%  'MarkerColor' ColorSpec or Mx3 matrix of RGB triples. Default: 'k'.%  'Line'        string '-',':','--' or '-.' or 'none'. Default: '-'.%  'Surf'        [], Mx1 or Mx3 matrix of RGB triples %                to define surface values. Default: [] = no surf. %                Note: shading is turned to 'interp'.%  'LineWidth'   scalar or MxM matrix, default: 0.5%  'LineColor'   ColorSepc, MxMx3 matrix of RGB triples or a cell array %                of form {r g b} where r,g, and b are MxM  %                (sparse) matrices of R,G, and B values%  'Label'       Mx1 char array, cell array of strings size MxL %                or [] to indicate no labels, default: [] = no labels.%  'LabelSize'   scalar%  'LabelColor'  ColorSpec or string 'none', default: 'g'.%% For more help, try 'type som_grid' or check out online documentation.% See also SOM_CONNECTION, SOM_SHOW, SOM_CPLANE, SOM_SET, SCATTER, SCATTER3.%%%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_grid%% PURPOSE % %  To visualize the SOM grid in various ways % % SYNTAX%%  [sGrid,m,l,t,s]=som_grid(sGrid)%  [sGrid,m,l,t,s]=som_grid(sTopol)%  [sGrid,m,l,t,s]=som_grid(sMap)%  [sGrid,m,l,t,s]=som_grid({lattice, msize, [shape]}) %  [sGrid,m,l,t,s]=som_grid(lattice, msize)%  [sGrid,m,l,t,s]=som_grid(..., ['argID', value, ...])%% DESCRIPTION %% The SOM can be defined as a set of units (neurons) and their% topological relations.  This function is used to visualize these in% various ways. The units may be drawn using different markers and% colors, in different sizes and in different locations in 2D or% 3D. However the topological neighborhood is limited to be% 2-dimensional. The connections between these units may be drawn using% lines having different thicknesses and colors. Labeling text may be% plotted on the units. It is possible also to draw a surface between% the units. The surface coloring is either indexed (one value per% unit) or fixed RGB (a 1x3 RGB triple per unit).%% REQUIRED INPUT ARGUMENTS %% Note: M is the number of map units.% % The first (or first two) argument may have various different types of values%%   1. sGrid   (struct) som_grid struct (the output of this function)%  %     The struct initiates the visualization. The argID-value -pairs%     are used to alter the initiation.%%   Following argument types may be used to give the topology for the grid% %   2. sTopol  (struct) som_topol struct %   3. sMap    (struct) som_map struct (only topology matters)%   4. {lattice, msize} or {lattice, msize, sheet} (cell array) %       - lattice must be 'hexa' or 'rect'%       - msize must be a 1x2 vector%       - shape (if specified) must be string 'sheet', 'cyl' or 'toroid'%         If shape is not given it is 'sheet' by default.%   5. lattice (string or matrix) AND msize (1x2 vector) as two separate arguments%       - lattice may be string 'rect' or 'hexa' or a connection matrix%         (see SOM_CONNECTION) to define a free topology. This connection%         matrix is of size MxM and its element i,j (i<j) is set%         to 1 if there is a connection between units i and j, otherwise to %         zero. Shape is set to 'sheet' by default. Shape does not have any %         meaning if a free topology is specified, anyway.%       - msize must be a 1x2 vector%%  In cases 2...5 the sGrid structure is initiated by default values%  which are set in SOM_SET. These include black markers 'o' (6pt),%  light gray conncection lines (graph edges), unit coordinates%  according to the lattice ('hexa','rect'), no labels, and no%  surface.%%  OPTIONAL INPUT ARGUMENTS %   %  Note: M is the number of map units.%   %  Here is a list of the valid arguments IDs and the associated%  values (identifiers are case insensitive):%%  'Coord'     Unit coordinates%              This defines the coordinates of the units. Default: the%              topological coordinates (calculated as in function%              SOM_VIS_COORDS and SOM_CPLANE). If the topology is free%              (lattice is a connection matrix) this argument is obligatory!%     (matrix) size Mx2 of 2D coordinates for each unit%     (matrix) size Mx3 of 3D coordinates for each unit% % 'Marker'       Unit markers, default is 'o'.%     (string) 'o','+','x','*','v','^','<','>','h','s','d', 'p','.', or 'none'%              give the same marker for each unit. %     (cell array) of size Mx1 of previous strings gives individual %              markers for each unit.%     % 'MarkerSize'   Size (pt) of unit markers, default is 6 (pt).%     (scalar) gives the same size for every unit.  %     (matrix) Mx1 gives an individual size for each unit marker.  %%  'MarkerColor' Unit marker colors, default is 'k'%     (ColorSpec) gives the same color each unit. %     (matrix) Mx3 of RGB triples gives individual color for each unit%              Note that indexed coloring - like in SOM_CPLANE - is%              not possible. If indexed coloring is needed, you can%              use SOM_NORMCOLOR to calculate RGB colors that%              emulate indexed coloring. However, the colors for the%              units are fixed, so changing colormap will not%              change the colors.%  %  'Line'        Line type, default is '-'.%     (string) '-',':','--' or '-.' or 'none'. Only one linetype in%              grid is allowed.  %%  'LineWidth'   Width of the topological connection lines (edges)  %     (scalar) gives the same width for each line. Default is 0.5.%     (matrix) MxM sparse (or full) matrix gives individual width for %              each connection. The element (i,j), i<j, gives the line width for %              connection between nodes i and j. (The sparse form is%              recommended for saving memory, a full matrix works as well,%              of course). Note that only the elements satisfying i<j%              matter - as the elememts for which j >= i are ignored in%              order to avoid ambiguous situations if the matrix would be %              non-symmetric. The "connections to oneself" is not drawn. %%              Line width zero is valid and causes the line to disappear.%           %  'LineColor'   Color of connection lines, default is [0.9 0.9 0.9].%     (ColorSpec) gives the same color for each line%     (matrix) MxMx3 matrix of RGB triples gives individual width for %              each connection. The element (i,j,:), i<j, gives the RGB triple for %              line between nodes i and j.     %     (cell array) of three sparse (or full) matrices {r,g,b} where %              r(i,j), g(i,j) and b(i,j) gives the R,G, and B values in the RGB%              triple for the line between nodes i and j. (The motivation for this%              form is the fact that a 3D arrays can't use sparse format in %              Matlab version 5.1.)%  %              Note that only the elements satisfying i<j matter - the elememts %              for which j >= i are ignored in order to avoid ambiguous situations %              if the matrix was non-symmetric. The "connections to oneself"%              is not drawn. %    %%  'Label'       Labels for units, default is [].%     (empty)  [] means no labels.%     (char array) of size Mx1. Element (i,:) has the label for unit i.     %     (cell array) of size MxL consisting of sets of labels. Element {i,:} %              contains the labeling for unit i. %               In case of multiple labels, the labels for one unit are shown %               in one column centered at that unit.%    %   'LabelSize'   Text size of labels (points), default is 10.%     (scalar) Default is 10.%%   'LabelColor'  Color of labels, default is 'c' (cyan).%     (ColorSpec) gives the same color for each label string 'xor'%                 sets the colors automatically so that they differ%                 from the background (using Matlab's built-in xor-color feature.)%    %  'Surf'         Surface between nodes, default is [].%     (empty)  [] gives no surface%     (vector) Mx1 gives an indexed interpolated color surface between %              units using the actual colormap.%     (matrix) Mx3 matrix of RGB triples gives a interpolated color surface %              between units using fixed RGB colors.%    %              Note that the interpolation is done using Matlab's built-in%              color interpolation for SURF objects.%% OUTPUT ARGUMENTS%%  sGrid    (struct) with fields S.msize, S.shape, S.lattice, S.coord, S.marker, %                    S.markersize, S.markercolor, S.line, S.linewidth, S.linecolor,%                    S.surf, S.label, S.labelsize, S.labelcolor%%  m        (matrix) handels to LINE objects (unit markers) %%  l        (matrix) handles to LINE objects (lines connecting the units)% %  t        (matrix) handles to TEXT objects (labels)%%  s        (scalar) handle  to SURF object  (surface between units)%% EXAMPLES%% % Make map of size 15x10 on random data:% %    map=som_make(rand(1000,4),'msize',[15 10], 'lattice', 'hexa');%% % Draw the grid using two frist varable values as coordinates% % and store the sGrid struct in varable S:%%    S=som_grid(map, 'coord', map.codebook(:,[1 2]))%% %Define some things: % %% % Create a cell array of size 150x1 that divides map in to two label classes% % 'circles' and 'squares'%   %    L(1:75,1)='o'; L(76:150,1)='s'; L = cellstr(L);%    % % Create a coloring according to the 3rd variable according to current% % colormap: %    %    C = som_normcolor(map.codebook(:,3));% % % Change the visualization: use black lines, unit markers in M and unit% % color in C, and set unit size to 10:%%    S=som_grid(S, 'linecolor', 'k', 'marker', L, 'MarkerColor',C, ...%     'MarkerSize', 10);%% % Do a new visualization, use indexed color surface calcualted from the% % first variable, coordinates according to the lattice (default) but % % no markers nor lines:% %    S=som_grid(map,'line','none','marker','none','surf',map.codebook(:,1));%% % Set coordinates according to three last varables%%    som_grid(S,'coord',map.codebook(:,2:4));%% % Create a random connection matrix R1 and the usual hexagonal% % neighborhood connection matrix R2: % %    R1=sparse(rand(150,150)>0.9); %    R2=som_connection(map);%% % Show these connections. Note that coordinates _must_ now be given% % explicitly: we form default topological coordinates using% % som_unit_coords.%%    som_grid(R1,map.topol.msize,'coord',som_unit_coords(map));%    som_grid(R2,map.topol.msize,'coord',som_unit_coords(map));%    % % Show connections (R1 AND R2)%    som_grid(R2.*R2,map.topol.msize,'coord',som_unit_coords(map));% % OBJECT TAGS%%  No tags are set.%% SEE ALSO%%  som_show        The basic map visualization routine%  som_cplane      The basic component plane visualization%  som_connection  The basic topological connections%  scatter         Scatter plots%  scatter3        3-dimensional scatter plots % Copyright (c) 1999-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/             % Version 2.0beta Johan 061099 juuso 151199 310300%% Init %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%True=1; False=0;                % const.m=[]; l=[]; t=[]; s=[];         % default values for outputsRef=som_set('som_grid');        % reference structnum_of_args=length(varargin);   % numb. of vararginsif num_of_args==0,  S=som_set('som_grid');  return;endswitch class(varargin{1})case 'struct'  S=varargin{1};  first_identifier=2;  if ~isfield(S,'type'),    error('Input struct is invalid: field ''type'' is missing.');  end  switch  S.type  case 'som_grid'    S=varargin{1};    first_identifier=2;  case 'som_map'    Ref.lattice=S.topol.lattice;    Ref.msize=S.topol.msize;    Ref.shape=S.topol.shape;    S=Ref;    first_identifier=2;  case 'som_topol'    Ref.lattice=S.lattice;    Ref.msize=S.msize;    Ref.shape=S.shape;    S=Ref;    first_identifier=2;  otherwise    error('Input struct has to be of type som_grid, som_map or som_topol.');  endcase 'cell'  S=varargin{1};  first_identifier=2;  if vis_valuetype(S,{'topol_cell_no_shape'}),    Ref.lattice=S{1};    Ref.msize=S{2};  elseif vis_valuetype(S,{'topol_cell'}),    Ref.lattice=S{1};    Ref.msize=S{2};    Ref.shape=S{3};  else    error(['The cell value for 1st argument has to be {lattice, msize}' ...	  'or {lattice, msize, shape}.']);   end  S=Ref; case{'double','sparse','char'}   % Set defaults  S=Ref;  first_identifier=3;   if num_of_args<2,    error('Not enough input arguments.');  end  S.lattice=varargin{1};  S.msize=varargin{2};otherwise  error('Invalid input arguments!');end  %% Check input args %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%for i=first_identifier:2:num_of_args,  if ischar(varargin{i}) & isfield(Ref,lower(varargin{i})),    if i+1>num_of_args,      error('Invalid identifier-value pairs or wrong argument order.');    else      S=setfield(S,lower(varargin{i}),varargin{i+1});    end  elseif ischar(varargin{i}),     error(['Identifier ''' varargin{i} ''' is unknown.']);  else    error('Invalid identifier-value pairs or wrong argument order.');  endend % msizeif ~vis_valuetype(S.msize,{'1x2'}),  error('msize has to be a 1x2 vector.');end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品少妇一区二区三区视频免付费| 在线观看国产91| 亚洲视频一区二区在线观看| 亚洲免费观看视频| 久久成人免费网站| 99re在线视频这里只有精品| 日韩精品福利网| 国产精品99久久久久久久vr| 麻豆成人久久精品二区三区小说| 亚洲视频一区二区免费在线观看 | 蜜桃精品视频在线| 最新国产成人在线观看| 日韩欧美在线影院| 欧美性色黄大片| 一本久道久久综合中文字幕| 国产一区二区久久| 男人的j进女人的j一区| 一区二区三区高清在线| 国产精品污网站| 精品国产乱码久久久久久久久 | 精品剧情v国产在线观看在线| 国产精品毛片久久久久久久| 制服丝袜亚洲色图| 日本韩国欧美在线| 99r国产精品| 成人一区二区视频| 国产经典欧美精品| 国产精品99久久久久久宅男| 美国十次综合导航| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲国产精品久久人人爱蜜臀| 中文字幕av不卡| 国产精品欧美精品| 国产日韩亚洲欧美综合| 国产欧美一区二区精品性色| 精品福利一二区| 精品国产亚洲在线| 精品99一区二区| 久久男人中文字幕资源站| 欧美成人精品3d动漫h| 日韩精品一区二区三区视频| 91精品啪在线观看国产60岁| 91精品国产综合久久精品| 7777精品伊人久久久大香线蕉的 | 亚洲男人都懂的| 亚洲欧美二区三区| 尤物视频一区二区| 亚洲高清免费视频| 免费一级欧美片在线观看| 美女在线视频一区| 国产一区二区精品久久| 国产·精品毛片| 99综合影院在线| 欧美日韩免费观看一区二区三区| 欧美日韩小视频| 日韩你懂的电影在线观看| 精品国产一区二区在线观看| 久久九九久精品国产免费直播| 国产午夜一区二区三区| 亚洲欧美偷拍卡通变态| 亚洲一区视频在线观看视频| 香蕉影视欧美成人| 国产综合成人久久大片91| 成人毛片老司机大片| 一本高清dvd不卡在线观看| 欧美精品亚洲二区| 久久久国产精品不卡| 日韩一区有码在线| 石原莉奈在线亚洲二区| 国产一区二区三区黄视频 | 欧美日韩在线播放三区四区| 欧美三级电影在线观看| 日韩欧美国产一区二区三区 | 午夜精品久久久久影视| 久久精品国产99久久6| 成人影视亚洲图片在线| 欧美色大人视频| 久久免费电影网| 亚洲乱码国产乱码精品精可以看 | 91精品国产91久久综合桃花| 2022国产精品视频| 亚洲综合一区二区三区| 麻豆91免费看| 色中色一区二区| 日韩精品中文字幕在线不卡尤物 | 日本美女一区二区| 成人毛片视频在线观看| 7777精品伊人久久久大香线蕉完整版| 久久精品一二三| 亚洲电影第三页| 丁香婷婷综合激情五月色| 欧美伊人久久久久久午夜久久久久| 日韩三级免费观看| 亚洲乱码中文字幕综合| 国产精品一区二区x88av| 精品视频在线免费看| 国产亲近乱来精品视频| 日韩精品91亚洲二区在线观看| 成人永久免费视频| 欧美不卡一区二区三区| 亚洲综合色自拍一区| 成人一区二区三区在线观看| 欧美一区二区三区影视| 亚洲男人的天堂在线aⅴ视频| 国产麻豆精品在线| 欧美一区二区三区在线| 亚洲精品国产无天堂网2021| 国产成人精品午夜视频免费| 日韩免费视频一区| 性久久久久久久久| 欧美亚洲尤物久久| 亚洲视频每日更新| 成人一区二区三区中文字幕| 欧美精品一区男女天堂| 日韩高清不卡一区二区三区| 91国产成人在线| 国产精品国产三级国产aⅴ入口 | 伊人色综合久久天天| 国产精品77777| 精品黑人一区二区三区久久| 亚洲风情在线资源站| 91蜜桃免费观看视频| 国产精品人妖ts系列视频| 国内偷窥港台综合视频在线播放| 69久久夜色精品国产69蝌蚪网| 亚洲精品欧美激情| 日本高清不卡aⅴ免费网站| 亚洲国产精品激情在线观看| 国产精品亚洲午夜一区二区三区| 日韩精品在线一区二区| 久久99国产精品尤物| 日韩欧美国产麻豆| 蜜桃久久精品一区二区| 日韩精品一区国产麻豆| 久久国产精品99久久久久久老狼| 欧美丰满嫩嫩电影| 男人的天堂久久精品| 日韩免费看的电影| 极品少妇xxxx精品少妇偷拍| 久久综合色综合88| 国产成a人无v码亚洲福利| 国产精品视频免费看| 成人激情动漫在线观看| 中文字幕中文字幕一区二区| 北岛玲一区二区三区四区| 中文字幕一区二区三中文字幕| 99久久久国产精品免费蜜臀| 亚洲欧美自拍偷拍| 在线视频一区二区免费| 性欧美大战久久久久久久久| 日韩三级.com| 国产精品 欧美精品| 亚洲四区在线观看| 精品污污网站免费看| 久久99热这里只有精品| 久久先锋影音av鲁色资源| 成人免费毛片a| 一区二区三区欧美亚洲| 欧美一区二区视频在线观看2022| 久久精品国产网站| 国产精品欧美一区喷水| 欧美体内she精高潮| 精品一区二区三区欧美| 中文字幕成人av| 欧美在线观看视频在线| 日韩福利视频导航| 日本一区二区成人| 欧美三级韩国三级日本三斤 | 久久99精品国产.久久久久久| 国产欧美中文在线| 色成人在线视频| 久久国产精品区| 亚洲丝袜另类动漫二区| 欧美日韩国产高清一区二区| 狠狠色狠狠色综合| 亚洲美女区一区| 欧美成人一级视频| 91在线看国产| 精品制服美女久久| 亚洲女爱视频在线| 久久久一区二区三区捆绑**| 色呦呦日韩精品| 狠狠色综合色综合网络| 一区二区三区日韩在线观看| 欧美精品一区二区三区在线| 色狠狠色噜噜噜综合网| 狠狠狠色丁香婷婷综合久久五月| 亚洲精选免费视频| 精品国产免费视频| 欧美在线制服丝袜| 国产成人精品一区二区三区网站观看| 亚洲福利电影网| 中文字幕欧美一| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 一区二区三区精密机械公司| 全国精品久久少妇| 91美女片黄在线| 婷婷丁香久久五月婷婷| 国产精品女同互慰在线看| 国产精品主播直播|