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

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

?? som_pieplane.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
字號:
function h=som_pieplane(varargin)%SOM_PIEPLANE Visualize the map prototype vectors as pie charts%% h=som_pieplane(lattice, msize, data, [color], [s], [pos])% h=som_pieplane(topol, data, [color], [s], [pos])%%  som_pieplane('hexa',[5 5], rand(25,4), jet(4), rand(25,1)) %  som_pieplane(sM, sM.codebook);%% Input and output arguments ([]'s are optional):%  lattice   (string) grid 'hexa' or 'rect'%  msize     (vector) size 1x2, defines the grid, M=msize(1)*msize(2)%            (matrix) size Mx2, gives explicit coordinates for each node: in %             this case the lattice does not matter.%  topol     (struct) map or topology struct%  data      (matrix) size Mxd, Mth row is the data for Mth pie. The %             values will be normalized to have unit sum in each row.%  [color]   (matrix) size dx3, RGB triples. The first row is the%             color of the first slice in each pie etc. Default is hsv(d).%            (string) ColorSpec or 'none' gives the same color for each slice.%  [s]       (matrix) size Mx1,  gives an individual size scaling for each node. %            (scalar) gives the same size for each node. Default is 0.8. %  [pos]     (vectors) a 1x2 vector that determines position for the%              origin, i.e. upper left corner. Default is no translation.%%  h         (scalar) the object handle to the PATCH object%% The data will be linearly scaled so that its sum is 1 in each unit.% Negative values are invalid. Axis are set as in som_cplane.%% For more help, try 'type som_pieplane' or check out online documentation.% See also SOM_CPLANE, SOM_PLOTPLANE, SOM_BARPLANE%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_pieplane%% PURPOSE% % Visualizes the map prototype vectors as pie charts.%% SYNTAX%%  h = som_pieplane(topol, data)%  h = som_pieplane(lattice, msize, data)%  h = som_pieplane(..., color)%  h = som_pieplane(..., color, s)%  h = som_pieplane(..., color, s, pos)%% DESCRIPTION%%  Visualizes the map prototype vectors as pie charts.%% KNOWN BUGS%% It is not possible to specify explicit coordinates for map% consisting of just one unit as then the msize is interpreted as% map size.%%  FEATURES% %  - negative values in data cause an error%%  - the colors are fixed: changing colormap in the figure (see help%    colormap) will not affect the coloring of the slices.%%  - if input variable s has size Nxd it gives each slice an individual%    scaling factor. This may be used to create a glyph where%    the radius of the slice, not the angle, shows the variable%    try, e.g., som_pieplane('rect',[5 4],ones(20,4),'w',rand(20,4));%% REQUIRED INPUT ARGUMENTS% % lattice  The basic shape of the map units %         %    (string) 'hexa' or 'rect' positions the pies according to hexagonal or %             rectangular map lattice.%% msize    The size of the map grid     %%    (vector) [n1 n2] vector defines the map size (height n1 units,%             width n2 units, total M=n1xn2 units). The units will %             be placed to their topological locations to form a%             uniform hexagonal or rectangular grid.%    (matrix) Mx2 matrix defines arbitary coordinates for the M units. In %             this case the argument 'lattice' has no effect.%% topol    Topology of the map grid%%   (struct) map or topology struct from which the topology is taken%% data     The data to be visualized%%    (matrix) Mxd matrix of data vectors. Negative values are invalid.%% OPTIONAL INPUT ARGUMENTS%% If value is unspecified or empty ([] or ''), the default values% are used for optional input arguments.%% s       The size scaling factors for the units%%    (scalar) gives each unit the same size scaling: %             0   unit disappears (edges can be seen as a dot)%             ... default size is 0.8%             >1  unit overlaps others          %    (matrix) Mx1 double: each unit gets individual size scaling %% color   The color of the slices in each pie%%    (string) ColorSpec or 'none' gives the same color for each slice%    (matrix) dx3 matrix assigns an RGB color determined by the dth row of%             the matrix to the dth slice (variable) in each pie plot%% pos    Position of origin       % %    (vector) size 1x2: this is meant for drawing the plane in arbitary %             location in a figure. Note the operation: if this argument is%             given, the axis limits setting part in the routine is skipped and %             the limits setting will be left to be done by%             MATLAB's defaults. Default is no translation.%% OUTPUT ARGUMENTS%%  h (scalar)  Handle to the created patch object.%% OBJECT TAGS     %% One object handle is returned: field Tag is set to 'planePie'       % % EXAMPLES%% %%% Create the data and make a map %    % data=rand(100,5); map=som_make(data);% % %%% Create a 'jet' colormap that has as many rows as the data has variables%    % colors=jet(5);% % %%% Draw pies%    % som_pieplane(map, map.codebook, colors);% % %%% Calculate the hits of data on the map and normalize them between [0,1]%  % hit=som_hits(map,data); hit=hit./max(max(hit));% % %%% Draw the pies so that their size tells the hit count%% som_pieplane(map, map.codebook, colors, hit);% % %%% Try this! (see section FEATURES) %% som_pieplane('rect',[5 4],ones(20,4),'w',rand(20,4));%% SEE ALSO%% som_cplane     Visualize a 2D component plane, u-matrix or color plane% som_barplane   Visualize the map prototype vectors as bar diagrams% som_plotplane  Visualize the map prototype vectors as line graphs% Copyright (c) 1999-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/             % Version 2.0beta Johan 140799 juuso 310300 070600%%% Check & Init arguments %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%[nargin, lattice, msize, data, color, s, pos] = vis_planeGetArgs(varargin{:});error(nargchk(3, 6, nargin));  % check no. of input args is correct% check posif nargin < 6 | isempty(pos)  pos=NaN;                            % default value for pos (no translation) elseif ~vis_valuetype(pos,{'1x2'})  error('Position of origin has to be given as an 1x2 vector');end% check msizeif ~vis_valuetype(msize,{'1x2','nx2'}),  error('msize has to be 1x2 grid size vector or a Nx2 coordinate matrix.');end% check dataif ~isnumeric(data),  error('Data matrix must be numeric.');elseif length(size((data)))>2  error('Data matrix has too many dimensions!');else  d=size(data,2);  N=size(data,1);endif any(data(:)<0)  error('Negative data values not allowed in pie plots!');end% Check latticeif ~ischar(lattice) | ~any(strcmp(lattice,{'hexa','rect'})),  error('Invalid lattice.');end%% Calculate patch coordinates for slicesfor i=1:N,                              [nx,ny]=vis_piepatch(data(i,:));      piesx(:,(1+(i-1)*d):(i*d))=nx;  piesy(:,(1+(i-1)*d):(i*d))=ny;endl=size(piesx,1);if size(msize,1) == 1,  if prod(msize) ~= N     error('Data matrix has wrong size.');  else    coord=som_vis_coords(lattice, msize);  endelse  if N ~= size(msize,1),    error('Data matrix has wrong size.');  end  coord=msize;   % This turns the axis tightening off,  % as now we don't now the limits (no fixed grid)  if isnan(pos); pos=[0 0]; endendx=reshape(repmat(coord(:,1),1,l*d)',l,d*N);y=reshape(repmat(coord(:,2),1,l*d)',l,d*N);% Check sizeif nargin < 5 | isempty(s),    s=0.8;                              % default value for scalingelseif ~vis_valuetype(s, {'1x1', [N 1], [N d]}),  error('Size matrix does not match with the data matrix.');elseif size(s) == [N 1],  s=reshape(repmat(s,1,l*d)',l,d*N);elseif all(size(s) ~= [1 1]),  s=reshape(repmat(reshape(s',d*N,1),1,l)',l,d*N);end% Check color% C_FLAG is a flag for color 'none' if nargin < 4 | isempty(color)  color=hsv(d); C_FLAG=0;       % default n hsv colorsendif ~(vis_valuetype(color, {[d 3], 'nx3rgb'},'all')) & ...      ~vis_valuetype(color,{'colorstyle','1x3rgb'}),   error('The color matrix has wrong size or contains invalid values.');elseif ischar(color) & strcmp(color,'none'),   C_FLAG=1;        % check for color 'none'  color='w';    else  C_FLAG=0;        % valid color string or colormapend%% Action %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Size zero would cause division by zero. eps is as good (node disappears)% The edge may be visible, though. (NaN causes some other problems)s(s==0)=eps;                    %% 1. Scalingx=(x./s+piesx).*s; y=(y./s+piesy).*s;      %% 2. Translation  if ~isnan(pos)  x=x+pos(1);y=y+pos(2);               end%% 3. Rearrange dx3 color matrixif ~isstr(color) & size(color,1)~=1,  color=reshape(repmat(color,N,1),[1 N*d 3]);end%% Set axes properties  ax=newplot;                            % get current axisvis_PlaneAxisProperties(ax,lattice, msize, pos);                         %% Draw the plane! h_=patch(x,y,color);if C_FLAG  set(h_,'FaceColor','none');endset(h_,'Tag','planePie');              % tag the object %%% Build output %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%if nargout>0, h=h_; end                % Set h only if                                        % there really is output%%% Subfunctions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function [x,y]=vis_piepatch(v)% Do a pie (see e.g. the MathWorks function PIE). % Origin is at (0,0) and the radius is .5.N=25;if sum(v)==0, v_is_zero = 1; v(1) = 1; else v_is_zero = 0; endv(v==0) = eps; % Matlab 5.2 version of linspace doesn't work otherwisephi=[0 2*pi*cumsum(v./sum(v))];for i=2:length(phi),  [xi,yi]=pol2cart(linspace(phi(i-1),phi(i),N),0.5);  x(:,i-1)=[0 xi 0]';  y(:,i-1)=[0 yi 0]';endif v_is_zero, x = x*0; y = y*0; end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久香蕉麻豆| 精品一二三四在线| 国产女人aaa级久久久级| 欧美狂野另类xxxxoooo| 一区二区在线看| 中文字幕一区二区三区在线播放 | 亚洲欧洲在线观看av| 综合在线观看色| 午夜精品久久久| 国产一区欧美二区| 在线观看视频一区| 日韩欧美国产精品一区| 久久综合久久鬼色| 亚洲午夜久久久久| 精品亚洲成a人| 91国内精品野花午夜精品 | 欧美日韩一区在线| 26uuu国产电影一区二区| 亚洲欧美另类久久久精品2019| 婷婷国产在线综合| 成人av在线资源网| 欧美日韩免费一区二区三区视频| 欧美大黄免费观看| 一级女性全黄久久生活片免费| 激情综合网av| 欧美精品少妇一区二区三区 | 成人免费视频国产在线观看| 欧美三区免费完整视频在线观看| 久久亚洲精华国产精华液| 国产精品久久久久一区二区三区共| 亚洲一区二区欧美激情| 国产精一区二区三区| 欧美一个色资源| 国产精品久久久久9999吃药| 欧美国产一区二区| 亚洲va欧美va人人爽午夜| 国产福利精品一区二区| 3atv一区二区三区| 亚洲va欧美va人人爽| 在线亚洲高清视频| 亚洲精品videosex极品| av毛片久久久久**hd| 国产精品免费aⅴ片在线观看| 麻豆成人在线观看| 777午夜精品免费视频| 亚洲成人激情自拍| 欧美性xxxxxxxx| 亚洲成人av电影| 欧美日韩国产综合草草| 一区二区三区国产精品| 欧美日韩一区二区在线观看| 一区二区三区免费网站| 91浏览器打开| 亚洲第一av色| 日韩小视频在线观看专区| 男人的j进女人的j一区| 久久久久久黄色| 波多野结衣中文字幕一区二区三区| 国产色综合久久| 91丨porny丨蝌蚪视频| 一区二区三区欧美日| 欧美一区二区日韩| 国产v综合v亚洲欧| 亚洲黄色av一区| 91精选在线观看| 韩国在线一区二区| 综合在线观看色| 日韩欧美aaaaaa| 色综合亚洲欧洲| 美女在线视频一区| 亚洲美女视频在线| xvideos.蜜桃一区二区| 激情成人午夜视频| 18涩涩午夜精品.www| 成人免费视频国产在线观看| 亚洲免费视频中文字幕| 欧美一级理论片| 色综合天天综合色综合av| 日韩av一区二区三区| 国产精品美女久久久久高潮| 欧美一区二区免费观在线| 成人精品gif动图一区| 麻豆成人在线观看| 亚洲与欧洲av电影| 日韩毛片视频在线看| 久久网站热最新地址| 91精品国产一区二区| 91黄色免费版| 成人高清在线视频| 国产精品一区二区三区99| 蜜乳av一区二区三区| 亚洲成在线观看| 亚洲第一主播视频| 自拍偷自拍亚洲精品播放| 国产视频一区在线播放| 欧美xxxxx牲另类人与| 欧美一级片免费看| 日韩一区二区三区视频在线观看| 欧美中文字幕一二三区视频| 99久久久久免费精品国产 | 色综合色综合色综合 | 成人激情午夜影院| 成人午夜视频福利| 成人久久18免费网站麻豆| 国产jizzjizz一区二区| 国产麻豆精品久久一二三| 韩国一区二区在线观看| 国产福利一区二区| 99re成人精品视频| 在线看日韩精品电影| 制服.丝袜.亚洲.中文.综合| 欧美日本在线观看| 26uuu国产电影一区二区| 久久久精品蜜桃| 亚洲欧洲国产日韩| 国产三级久久久| 2019国产精品| 久久婷婷色综合| 亚洲色图欧洲色图| 日韩成人精品视频| 国内欧美视频一区二区| bt欧美亚洲午夜电影天堂| 91美女福利视频| 日韩一区二区三区四区五区六区| 精品剧情在线观看| 亚洲免费色视频| 激情文学综合丁香| 91激情在线视频| 久久免费午夜影院| 亚洲成人午夜影院| 波多野结衣一区二区三区| 91麻豆精品国产91久久久| 中文字幕精品—区二区四季| 亚洲电影第三页| 99精品欧美一区二区三区小说| 欧美性生活大片视频| 久久综合久久99| 麻豆极品一区二区三区| 色香蕉久久蜜桃| 日本一区二区三区国色天香 | 亚洲麻豆国产自偷在线| 激情五月播播久久久精品| 欧美电影一区二区| 一区二区三区在线免费| 国产精品一级在线| 精品国产一区二区三区久久久蜜月| 亚洲精品乱码久久久久久黑人| 国产成人精品免费在线| 6080午夜不卡| 日韩电影在线观看电影| 欧美日韩视频在线一区二区| 亚洲精品日韩一| 91视频xxxx| 一区二区在线免费| 欧美亚洲精品一区| 亚洲电影第三页| 欧美日韩三级一区二区| 亚洲aⅴ怡春院| 欧美群妇大交群的观看方式| 午夜在线成人av| 91精品久久久久久久99蜜桃| 秋霞午夜鲁丝一区二区老狼| 成人黄色国产精品网站大全在线免费观看| 欧美三区免费完整视频在线观看| 亚洲另类在线视频| 欧美视频在线一区| 蜜桃视频一区二区| 欧美精品一区男女天堂| 国产成人午夜精品影院观看视频 | 成人av免费观看| 亚洲视频综合在线| 欧美性受极品xxxx喷水| 蜜桃久久精品一区二区| 久久九九久久九九| 91成人国产精品| 国产精品自在在线| 亚洲自拍偷拍综合| 久久综合久久综合亚洲| 91在线观看污| 免费看日韩精品| 自拍偷在线精品自拍偷无码专区| 欧美精品一级二级三级| 国产馆精品极品| 午夜一区二区三区在线观看| 久久精品日产第一区二区三区高清版 | 国产精品一区二区无线| 亚洲尤物视频在线| 国产精品入口麻豆九色| 91精品国产丝袜白色高跟鞋| 91在线观看免费视频| 麻豆精品精品国产自在97香蕉 | av在线播放不卡| 蜜臀av一区二区| 婷婷激情综合网| 一区二区三区影院| 国产精品国产三级国产普通话99 | 韩国一区二区三区| 男女男精品网站| 亚洲一区二区三区国产| 国产精品沙发午睡系列990531|