亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产在线精品不卡| 国产麻豆一精品一av一免费| 亚洲国产美国国产综合一区二区| 视频一区中文字幕国产| 成人丝袜视频网| 精品免费一区二区三区| 午夜一区二区三区在线观看| 亚洲国产一区在线观看| 国产精品综合在线视频| 97se亚洲国产综合自在线观| 911精品产国品一二三产区| 国产精品久久久久aaaa| 久久草av在线| 91精品国产91久久久久久一区二区 | 欧美日韩精品专区| 国产免费观看久久| 国产在线看一区| 欧美一级夜夜爽| 亚洲一级在线观看| 色美美综合视频| 国产精品网曝门| 韩国av一区二区三区| 91精品国产一区二区人妖| 亚洲尤物在线视频观看| 成人性视频免费网站| 久久只精品国产| 国产一区91精品张津瑜| 精品国产亚洲一区二区三区在线观看| 亚洲午夜久久久| 精品剧情在线观看| 欧美一区二区三区喷汁尤物| 日韩欧美国产高清| 欧美日韩高清不卡| 91亚洲精华国产精华精华液| 国产一区二区在线看| 中日韩av电影| 国产精品视频九色porn| 日韩一区二区三区在线| 欧美日韩www| 久久久亚洲高清| 麻豆91在线观看| 69堂亚洲精品首页| 美女www一区二区| 精品国产免费人成在线观看| 麻豆91小视频| 久久蜜桃av一区精品变态类天堂| 九一久久久久久| 国产亚洲欧洲997久久综合 | 一区二区国产盗摄色噜噜| 成人精品视频.| 亚洲男女毛片无遮挡| 91免费观看视频在线| 亚洲一区二区精品视频| 宅男噜噜噜66一区二区66| 久久精品国产免费看久久精品| 久久无码av三级| 99久久综合狠狠综合久久| 亚洲最快最全在线视频| 在线播放91灌醉迷j高跟美女| 毛片av中文字幕一区二区| 国产亚洲欧美在线| 欧美在线观看禁18| 精品一二三四区| **欧美大码日韩| 欧美一区二区三区爱爱| 国产91丝袜在线播放| 亚洲欧美日韩国产综合| 在线观看国产日韩| 六月丁香综合在线视频| 亚洲同性gay激情无套| 91麻豆精品国产91久久久使用方法 | 国产精品短视频| 正在播放亚洲一区| 成人精品鲁一区一区二区| 婷婷开心久久网| 亚洲欧洲性图库| 欧美一区二区三区爱爱| 99九九99九九九视频精品| 麻豆视频一区二区| 亚洲色图.com| 精品少妇一区二区三区日产乱码| 色综合久久88色综合天天免费| 久久精品国产99国产精品| 国产精品久久久久影院| 欧美专区日韩专区| 亚洲一区免费视频| 亚洲精品伦理在线| 成人综合婷婷国产精品久久蜜臀 | 中日韩免费视频中文字幕| 日韩电影在线观看电影| 精品粉嫩超白一线天av| 亚洲国产你懂的| 久久久久久久久久久久久女国产乱| 成人动漫一区二区在线| 老鸭窝一区二区久久精品| 伊人开心综合网| 国产精品毛片高清在线完整版 | 91丝袜高跟美女视频| 久久精品国产久精国产爱| 亚洲午夜一区二区三区| 亚洲欧美成aⅴ人在线观看| 国产拍欧美日韩视频二区| 欧美一区二区三区电影| 欧美日本一区二区三区四区| 极品少妇一区二区三区精品视频| 一区二区高清免费观看影视大全| www国产亚洲精品久久麻豆| 欧美性受xxxx黑人xyx性爽| jlzzjlzz国产精品久久| 国产黄色精品视频| 国产一区二区三区最好精华液| 视频一区二区欧美| 午夜精品久久久久久久久久久| 亚洲黄色性网站| 亚洲欧美日韩一区二区三区在线观看| 国产精品女主播在线观看| 日本一区二区三区四区在线视频 | 91蝌蚪porny九色| 成人小视频在线| 成人动漫在线一区| 91女神在线视频| 色婷婷精品久久二区二区蜜臂av | 国产精品亚洲专一区二区三区| 激情偷乱视频一区二区三区| 久久9热精品视频| 国产一区二区三区免费| 国产白丝精品91爽爽久久| 国产福利一区二区| 91在线观看视频| 欧美三级一区二区| 日韩精品中文字幕一区二区三区| 日韩精品在线一区| 国产精品污污网站在线观看 | 精品美女被调教视频大全网站| 精品日韩av一区二区| 国产精品一区免费在线观看| 亚洲午夜国产一区99re久久| 91丨九色porny丨蝌蚪| 91精品久久久久久蜜臀| 欧美又粗又大又爽| 在线观看亚洲专区| 欧美成人精精品一区二区频| 日本高清不卡一区| 在线视频一区二区三| 欧美三区免费完整视频在线观看| 欧美性做爰猛烈叫床潮| 欧美少妇性性性| 国产欧美日韩视频在线观看| 欧美va亚洲va香蕉在线| 久久久亚洲高清| 亚洲精品成人悠悠色影视| 亚洲bt欧美bt精品777| 精品一区二区三区久久久| www.成人网.com| 欧美美女激情18p| 中文字幕久久午夜不卡| 日韩黄色免费电影| 成人综合婷婷国产精品久久蜜臀 | 亚洲精品写真福利| 日本人妖一区二区| 成人18精品视频| 69av一区二区三区| 中文字幕中文字幕中文字幕亚洲无线| 亚洲综合久久av| 懂色中文一区二区在线播放| 欧美精品日日鲁夜夜添| 国产精品你懂的在线| 日韩精品亚洲专区| 色又黄又爽网站www久久| 日韩精品影音先锋| 亚洲午夜精品在线| eeuss国产一区二区三区| 欧美成人a∨高清免费观看| 亚洲精品菠萝久久久久久久| 国产美女主播视频一区| 欧美日韩国产另类一区| 亚洲欧洲av在线| 精品一区二区三区免费观看| 色吊一区二区三区| 中文字幕在线不卡一区二区三区| 久久99久久精品| 欧美精品电影在线播放| 一区二区三区免费| 91麻豆免费看| 17c精品麻豆一区二区免费| 国产suv精品一区二区883| 精品成人私密视频| 日本aⅴ精品一区二区三区 | 亚洲狠狠爱一区二区三区| 国产精品自拍网站| 2021国产精品久久精品| 日本伊人色综合网| 欧美一区二区三区视频免费| 亚洲第一成人在线| 欧美日韩国产高清一区| 午夜a成v人精品| 欧美一区二区网站| 日韩福利电影在线观看| 99re成人精品视频| 亚洲欧美自拍偷拍色图|