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

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

?? linkage.m

?? 提供一matlab編寫的人工免疫的算法源程序
?? M
字號(hào):
function Z = linkage(Y, method)
%LINKAGE Hierarchical cluster information.
%   LINKAGE(Y) computes the hierarchical cluster information, using the
%   single linkage algorithm, from a given distance matrix Y generated
%   by PDIST. Y is also commonly known as similarity or
%   dissimilarity matrix.
%
%   LINKAGE(Y, method) computes the hierarchical cluster information using
%   the specified algorithm. The available methods are:
%
%      'single'   --- nearest distance
%      'complete' --- furthest distance
%      'average'  --- average distance
%      'centroid' --- center of mass distance
%      'ward'     --- inner squared distance
%
%   Cluster information will be returned in the matrix Z with size m-1
%   by 3.  Column 1 and 2 of Z contain cluster indices linked in pairs
%   to form a binary tree. The leaf nodes are numbered from 1 to
%   m. They are the singleton clusters from which all higher clusters
%   are built. Each newly-formed cluster, corresponding to Z(i,:), is
%   assigned the index m+i, where m is the total number of initial
%   leaves. Z(i,1:2) contains the indices of the two component
%   clusters which form cluster m+i. There are n-1 higher clusters
%   which correspond to the interior nodes of the output clustering
%   tree. Z(i,3) contains the corresponding linkage distances between
%   the two clusters which are merged in Z(i,:), e.g. if there are
%   total of 30 initial nodes, and at step 12, cluster 5 and cluster 7
%   are combined and their distance at this time is 1.5, then row 12
%   of Z will be (5,7,1.5). The newly formed cluster will have an
%   index 12+30=42. If cluster 42 shows up in a latter row, that means
%   this newly formed cluster is being combined again into some bigger
%   cluster.
%
%   See also PDIST, INCONSISTENT, COPHENET, DENDROGRAM, CLUSTER, CLUSTERDATA

%   ZP You, 3-10-98
%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.4 $

[k, n] = size(Y);

if n < 3
  error('You have to have at least three distances to do a linkage.');
end
  

m = (1+sqrt(1+8*n))/2;
if k ~= 1 | m ~= fix(m)
  error('The first input has to match the output of the PDIST function in size.');   
end

if nargin == 1 % set default switch to be 's' 
   method = 'si';
end

if length(method) < 2
   error('The switch given by the second argument is not defined.');
end

method = lower(method(1:2)); % simplify the switch string.

Z = zeros(m-1,3); % allocate the output matrix.

% during updating clusters, cluster index is constantly changing, R is
% a index vector mapping the original index to the current (row
% column) index in X.  N denotes how many points are contained in each
% cluster.

N = zeros(1,2*m-1);
N(1:m) = 1;
n = m; % since m is changing, we need to save m in n. 
R = 1:n;

if method == 'ce'  % square the X so that it is easier to update.
   Y = Y .* Y;
elseif method == 'wa'
   Y = Y .* Y/2;
end

for s = 1:(n-1)
   if method == 'av'
      p = (m-1):-1:2;
      I = zeros(m*(m-1)/2,1);
      I(cumsum([1 p])) = 1;
      I = cumsum(I);
      J = ones(m*(m-1)/2,1);
      J(cumsum(p)+1) = 2-p;
      J(1)=2;
      J = cumsum(J);
      W = N(R(I)).*N(R(J));
      X = Y./W;   
   else
      X = Y;
   end
   
   [v, k] = min(X);
   if method == 'ce'
      v = sqrt(v);
   end
   
   i = floor(m+1/2-sqrt(m^2-m+1/4-2*(k-1)));
   j = k - (i-1)*(m-i/2)+i;
   
   Z(s,:) = [R(i) R(j) v]; % update one more row to the output matrix A
   
   % update X, in order to vectorize the computation, we need to compute
   % all the index corresponds to cluster i and j in X, denoted by I and J.
   I1 = 1:(i-1); I2 = (i+1):(j-1); I3 = (j+1):m; % these are temp variables.
   U = [I1 I2 I3];
   I = [I1.*(m-(I1+1)/2)-m+i i*(m-(i+1)/2)-m+I2 i*(m-(i+1)/2)-m+I3];
   J = [I1.*(m-(I1+1)/2)-m+j I2.*(m-(I2+1)/2)-m+j j*(m-(j+1)/2)-m+I3];
   
   switch method
   case 'si' %single linkage
      Y(I) = min(Y(I),Y(J));
   case 'av' % average linkage
      Y(I) = Y(I) + Y(J);
   case 'co' %complete linkage
      Y(I) = max(Y(I),Y(J));
   case 'ce' % centroid linkage
      K = N(R(i))+N(R(j));
      Y(I) = (N(R(i)).*Y(I)+N(R(j)).*Y(J)-(N(R(i)).*N(R(j))*v^2)./K)./K;
   case 'wa'
      Y(I) = ((N(R(U))+N(R(i))).*Y(I) + (N(R(U))+N(R(j))).*Y(J) - ...
	  N(R(U))*v)./(N(R(i))+N(R(j))+N(R(U)));
   otherwise error('method not recognized.');
   end
   J = [J i*(m-(i+1)/2)-m+j];
   Y(J) = []; % no need for the cluster information about j.
   
   % update m, N, R
   m = m-1; 
   N(n+s) = N(R(i)) + N(R(j));
   R(i) = n+s;
   R(j:(n-1))=R((j+1):n); 
end

if method == 'wa'
   Z(:,3) = sqrt(Z(:,3));
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲永久精品国产| 欧美zozo另类异族| 亚洲综合图片区| 在线免费精品视频| 亚洲午夜影视影院在线观看| 欧美在线你懂得| 日韩精品成人一区二区三区 | 国产999精品久久久久久绿帽| 日韩欧美在线一区二区三区| 久久99国内精品| 2欧美一区二区三区在线观看视频| 国内精品不卡在线| 综合精品久久久| 欧美性色aⅴ视频一区日韩精品| 亚洲mv在线观看| 欧美岛国在线观看| 波多野结衣91| 天天综合天天做天天综合| 日韩一区二区在线观看视频| 国产在线精品一区二区不卡了| 国产清纯在线一区二区www| 99久久国产综合精品色伊| 亚洲线精品一区二区三区| 欧美体内she精视频| 免费国产亚洲视频| 国产精品污网站| 欧美日韩国产影片| 国产乱人伦偷精品视频免下载| 中文字幕日韩欧美一区二区三区| 在线亚洲一区二区| 激情国产一区二区 | 精品国免费一区二区三区| 国产精品99久久久| 一区二区三区蜜桃网| 日韩欧美激情在线| 色哟哟国产精品| 久久狠狠亚洲综合| 一区二区三区国产精华| 精品美女一区二区三区| 色婷婷激情综合| 国产乱码精品一区二区三区忘忧草| 亚洲欧洲成人精品av97| 日韩一区国产二区欧美三区| 9i看片成人免费高清| 精品一区二区三区av| 亚洲男同1069视频| 久久久精品国产免大香伊| 欧美亚洲综合网| 成人污视频在线观看| 美女视频黄a大片欧美| 亚洲一区二区精品视频| 中文字幕av在线一区二区三区| 9191国产精品| 日本精品视频一区二区| 国产成人在线视频网站| 久久爱另类一区二区小说| 亚洲国产日韩av| 亚洲欧美另类久久久精品2019| 久久综合九色综合97_久久久| 欧美怡红院视频| 色哟哟国产精品| 97精品久久久午夜一区二区三区 | 亚洲一区二区三区四区在线观看| 久久久久久电影| 在线电影一区二区三区| 99re这里只有精品视频首页| 久久国产精品免费| 蜜臀av亚洲一区中文字幕| 亚洲一二三专区| 一区二区三区四区在线| **欧美大码日韩| 国产精品久久久久婷婷| 国产网红主播福利一区二区| 久久久噜噜噜久噜久久综合| 欧美一区二区三区影视| 91麻豆精品国产无毒不卡在线观看 | 色综合色狠狠天天综合色| 大陆成人av片| 成人精品国产一区二区4080| 国产成+人+日韩+欧美+亚洲| 国产福利一区二区| 狠狠色丁香久久婷婷综合_中 | 国产一区二区三区四区五区美女| 美国十次综合导航| 激情久久五月天| 成人深夜福利app| 99久久综合狠狠综合久久| 91在线精品一区二区三区| 北条麻妃一区二区三区| av亚洲精华国产精华精华| 99久久伊人网影院| 99精品久久只有精品| 91一区二区三区在线观看| 欧美在线免费观看视频| 制服丝袜av成人在线看| 8v天堂国产在线一区二区| 日韩欧美一级二级三级 | 欧美国产视频在线| 国产精品免费久久久久| 亚洲摸摸操操av| 亚洲第一激情av| 国产专区综合网| 99久久精品国产一区| 欧美亚洲国产一区二区三区 | 自拍偷拍亚洲综合| 一区二区日韩av| 蜜桃视频在线观看一区二区| 国产伦精品一区二区三区在线观看 | 久久精子c满五个校花| 最近日韩中文字幕| 午夜激情久久久| 国产成人日日夜夜| 日本高清免费不卡视频| 日韩美一区二区三区| 中文字幕亚洲一区二区va在线| 亚洲高清三级视频| 国产伦精品一区二区三区免费| av亚洲精华国产精华精| 91精品在线麻豆| 久久久久国产精品麻豆ai换脸| 亚洲欧美日韩国产另类专区| 午夜精品国产更新| 国产a级毛片一区| 欧美日韩在线三级| 久久久久久免费网| 亚洲高清免费观看 | 99久久免费视频.com| 国产欧美精品一区二区色综合| 1区2区3区国产精品| 日韩avvvv在线播放| 成人不卡免费av| 日韩一本二本av| 亚洲精品久久久蜜桃| 国产精品自在欧美一区| 欧美日韩夫妻久久| 国产精品精品国产色婷婷| 久久99热国产| 欧美日本一区二区| 亚洲视频免费在线| 国产精品一区三区| 91精品国产高清一区二区三区蜜臀| 国产精品久久久久久久浪潮网站| 日本不卡一二三| 欧美优质美女网站| 1区2区3区欧美| 国产成人精品亚洲午夜麻豆| 91精品久久久久久久91蜜桃| 尤物视频一区二区| a在线播放不卡| 国产拍揄自揄精品视频麻豆| 卡一卡二国产精品 | 欧美亚洲国产怡红院影院| 国产精品久久久久久妇女6080| 国产精品一区二区三区99| 精品国产一二三| 视频一区在线视频| 欧美视频自拍偷拍| 亚洲一区中文日韩| 91年精品国产| 日韩一区在线看| 99国产精品久久久久| 中文字幕亚洲欧美在线不卡| 成人午夜电影久久影院| 久久蜜臀精品av| 日韩精品一区二区三区视频播放| 亚洲国产成人tv| 欧美日韩专区在线| 亚洲国产日韩精品| 欧美午夜理伦三级在线观看| 亚洲免费av高清| 91国偷自产一区二区三区观看| 亚洲色图丝袜美腿| 91久久精品一区二区二区| 亚洲黄色免费电影| 欧美日韩一区二区三区四区| 亚洲二区在线观看| 欧美久久久久中文字幕| 日本女人一区二区三区| 91精品国产乱码久久蜜臀| 韩国成人福利片在线播放| 久久综合狠狠综合| 高清国产一区二区| 最新成人av在线| 欧美视频精品在线| 免费观看在线色综合| 26uuu亚洲综合色欧美 | 97久久精品人人澡人人爽| 亚洲精品中文字幕乱码三区| 欧美色视频在线| 美女一区二区在线观看| 久久久综合精品| a级精品国产片在线观看| 一区二区三区中文字幕精品精品| 欧美在线小视频| 久久超级碰视频| 亚洲国产精品激情在线观看| 色诱视频网站一区| 老司机午夜精品| ●精品国产综合乱码久久久久| 欧美伊人精品成人久久综合97|