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

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

?? cluster_test1.m

?? 關于聚類問題的matlab程序以及其中函數的說明
?? M
字號:
%最短距離法系統聚類分析
%  ZSCORE Standardized z score.
%     Z = ZSCORE(D) returns the deviation of each column of D from its mean 
%     normalized by its standard deviation. This is known as the Z score of D.
%     For a column vector V, z score is Z = (V-mean(V))./std(V)
%     返回每列的標準偏差;
%     ZSCORE is commonly used to preprocess data before computing distances for 
%     cluster analysis.一般用于聚類計算距離前進行數據預處理
%--------------------------------------------------------------------------
%  PDIST Pairwise distance between observations.
%     Y = PDIST(X) returns a vector Y containing the Euclidean distances
%     between each pair of observations in the M-by-N data matrix X.
%     默認返回包含矩陣X中每兩對向量的歐式距離;
%     Rows of X correspond to observations, columns correspond to variables. 
%      Y is an (M*(M-1)/2)-by-1 vector, corresponding to the M*(M-1)/2 pairs 
%     of observations in X.
%     一共產生m*(m-1)/2個距離,注意是以行向量作為一個參數的n次采樣向量,
%     即m*n表示m個參數,n次采樣
%--------------------------------------------------------------------------
%     Y = PDIST(X, DISTANCE) computes Y using DISTANCE.  Choices are:
%  
%         'euclidean'   - Euclidean distance歐式距離
%         'seuclidean'  - Standardized Euclidean distance, each coordinate
%                         in the sum of squares is inverse weighted by the
%                         sample variance of that coordinate
%         'cityblock'   - City Block distance
%         'mahalanobis' - Mahalanobis distance
%         'minkowski'   - Minkowski distance with exponent 2馬式距離
%         'cosine'      - One minus the cosine of the included angle
%                         between observations (treated as vectors)
%         'correlation' - One minus the sample correlation between
%                         observatons (treated as sequences of values).
%         'hamming'     - Hamming distance, percentage of coordinates
%                         that differ
%         'jaccard'     - One minus the Jaccard coefficient, the
%                         percentage of nonzero coordinates that differ
%         function      - A distance function specified using @, for
%                         example @DISTFUN
%  
%     A distance function must be of the form
%  
%           function D = DISTFUN(XI, XJ, P1, P2, ...),
%  
%     taking as arguments two L-by-N matrices XI and XJ each of which
%     contains rows of X, plus zero or more additional problem-dependent
%     arguments P1, P2, ..., and returning an L-by-1 vector of distances D,
%     whose Kth element is the distance between the observations XI(K,:)
%     and XJ(K,:).
%  
%     Y = PDIST(X, DISTFUN, P1, P2, ...) passes the arguments P1, P2, ...
%     directly to the function DISTFUN.
%  
%     Y = PDIST(X, 'minkowski', P) computes Minkowski distance using the
%     positive scalar exponent P.
%  
%     The output Y is arranged in the order of ((1,2),(1,3),..., (1,M),
%     (2,3),...(2,M),.....(M-1,M)), i.e. the upper right triangle of the full
%     M-by-M distance matrix.  To get the distance between the Ith and Jth
%     observations (I < J), either use the formula Y((I-1)*(M-I/2)+J-I), or
%     use the helper function Z = SQUAREFORM(Y), which returns an M-by-M
%     square symmetric matrix, with the (I,J) entry equal to distance between
%     observation I and observation J.
%  
%     Example:
%  
%        X = randn(100, 5);                 % some random points
%        Y = pdist(X, 'euclidean');         % unweighted distance
%        Wgts = [.1 .3 .3 .2 .1];           % coordinate weights
%        Ywgt = pdist(X, @weucldist, Wgts); % weighted distance
%  
%        function d = weucldist(XI, XJ, W) % weighted euclidean distance
%        d = sqrt((XI-XJ).^2 * W');
%--------------------------------------------------------------------------
%  SQUAREFORM Square matrix formatted distance. 
%     Z = squareform(Y) converts the output of PDIST function into a 
%     square format, so that Z(i,j) denotes the distance between the
%     i and j objects in the original data.將pdist的輸出轉換成一個對稱方陣形式,
%     因此Z(i,j)表示原始數據中參數i和j之間的距離
%--------------------------------------------------------------------------
%  LINKAGE Create hierarchical cluster tree. 創建分等級的聚類樹
%     Z = LINKAGE(Y) creates a hierarchical cluster tree, using the single
%     linkage algorithm.  The input Y is a distance matrix such as is
%     generated by PDIST.  Y may also be a more general dissimilarity
%     matrix conforming to the output format of PDIST.
%  
%     Z = LINKAGE(Y, method) creates a hierarchical cluster tree using
%     the specified algorithm. The available methods are:
%  
%        'single'   --- nearest distance 最短距離法
%        'complete' --- furthest distance最長距離法
%        'average'  --- average distance 平均距離法
%        'centroid' --- center of mass distance (the output Z is meaningful
%                       only if Y contains Euclidean distances)
%        'ward'     --- inner squared distance
%  
%     Cluster information will be returned in the matrix Z with size m-1
%     by 3, where m is the number of observations in the original data. 
%     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.
%  
%     The centroid method can produce a cluster tree that is not monotonic.
%     This occurs when the distance from the union of two clusters to a third
%     cluster is less than the distance from either individual cluster to
%     that third cluster. In such a case, sections of the dendrogram change
%     direction.  This is an indication that another method should be used.
%--------------------------------------------------------------------------
clc;
clear;
X=[7.90 39.77 8.49 12.94 19.27 11.05 2.04 13.29;
    7.68 50.37 11.35 13.3 19.25 14.59 2.75 14.87;
    9.42 27.93 8.20 8.14 16.17 9.42 1.55 9.76;
    9.16 27.98 9.01 9.32 15.99 9.10 1.82 11.35;
    10.06 28.64 10.52 10.05 16.18 8.39 1.96 10.81];
%X1=xlsread('d:\test1.xls');X=X';
BX=zscore(X);   %標準化數據矩陣
Y=pdist(X)  %用歐氏距離計算兩兩之間的距離
D=squareform(Y) %歐氏距離矩陣
Z=linkage(Y,'single')    %最短距離法
T=cluster(Z,9)  %等價于    {T=clusterdata(X,3)}
%find(T==3)  %第3 類集合中的元素
[H,T]=dendrogram(Z) %畫聚類圖

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合网 天天综合色| 国产欧美视频在线观看| av成人免费在线| 激情综合亚洲精品| 免费不卡在线视频| 亚洲一区二区四区蜜桃| 成人免费一区二区三区视频| 成人免费福利片| 精品一区二区三区免费毛片爱| 国产精品日日摸夜夜摸av| 欧美老肥妇做.爰bbww| 国产二区国产一区在线观看| 亚洲444eee在线观看| 亚洲图片一区二区| 亚洲精品五月天| 亚洲蜜臀av乱码久久精品| 国产精品久久一级| 国产精品人成在线观看免费| 国产日韩欧美一区二区三区综合 | 欧美精品123区| 欧美亚洲综合一区| 欧美日韩三级视频| 欧美日韩精品欧美日韩精品一综合| 成人精品亚洲人成在线| 国产高清视频一区| av中文字幕亚洲| 99久久婷婷国产综合精品电影| 99国产精品久久久久久久久久 | 久久爱另类一区二区小说| 婷婷丁香久久五月婷婷| 亚洲精品成人悠悠色影视| 亚洲.国产.中文慕字在线| 奇米亚洲午夜久久精品| 亚洲一区av在线| 久久精品国产亚洲a| 久久电影网站中文字幕 | 色哟哟精品一区| 欧美性猛片aaaaaaa做受| 欧美精品久久久久久久多人混战| 99久久99久久综合| 91麻豆精品国产91| 久久女同性恋中文字幕| 中文字幕中文字幕一区| 亚洲h动漫在线| 国产精品99久久久久久久vr| 91国产精品成人| 日韩网站在线看片你懂的| 欧美激情综合网| 日日夜夜精品视频免费| 久久精品国产澳门| 不卡高清视频专区| 欧美另类久久久品| 国产视频亚洲色图| 亚洲v精品v日韩v欧美v专区| 国产综合久久久久影院| 色88888久久久久久影院野外| 日韩一级视频免费观看在线| 亚洲国产精品精华液2区45| 亚洲精品欧美在线| 国精产品一区一区三区mba桃花| 91福利在线免费观看| 2020国产精品自拍| 肉丝袜脚交视频一区二区| 精品伊人久久久久7777人| 国产一区二区免费在线| 欧美日韩精品二区第二页| 国产日韩欧美激情| 蜜臀久久99精品久久久久久9| 91丝袜呻吟高潮美腿白嫩在线观看| 国产亚洲欧美激情| 日韩成人午夜精品| 在线观看欧美黄色| 国产精品久久久久一区二区三区| 婷婷成人综合网| 色综合色狠狠综合色| 久久一夜天堂av一区二区三区| 午夜精品一区二区三区电影天堂| 97国产精品videossex| 国产喂奶挤奶一区二区三区| 日韩国产精品久久久| 欧美午夜理伦三级在线观看| 亚洲精品伦理在线| 成人av资源下载| 中文字幕av一区二区三区高| 黄色资源网久久资源365| 日韩三级.com| 精品中文字幕一区二区小辣椒| 欧美电影在哪看比较好| 偷偷要91色婷婷| 欧美区在线观看| 亚洲成a天堂v人片| 欧美日韩中文一区| 午夜av一区二区三区| 色综合天天做天天爱| 综合婷婷亚洲小说| 欧美三级视频在线观看| 亚洲一二三四在线观看| 欧美日本一区二区在线观看| 午夜亚洲国产au精品一区二区| 7777精品伊人久久久大香线蕉超级流畅 | 欧美三区在线观看| 亚洲图片有声小说| 日韩欧美电影一区| 久久精品国产亚洲高清剧情介绍| 欧美成人猛片aaaaaaa| 国产一区二区精品久久91| 国产三级一区二区| 成人丝袜18视频在线观看| 中文字幕综合网| 欧美日韩在线播放三区| 日本免费新一区视频| 久久久久一区二区三区四区| 大陆成人av片| 亚洲自拍与偷拍| 91麻豆精品国产| av不卡在线观看| 中文字幕一区av| 91久久精品一区二区| 日日夜夜免费精品视频| 久久综合九色综合97婷婷| av亚洲精华国产精华| 舔着乳尖日韩一区| 国产婷婷色一区二区三区在线| 91老师片黄在线观看| 日韩国产精品久久| 国产精品第五页| 日韩欧美国产系列| 一本到不卡免费一区二区| 日韩不卡手机在线v区| 国产精品毛片大码女人| 欧美日韩中文国产| 成熟亚洲日本毛茸茸凸凹| 亚洲18色成人| 国产精品久久久久久久久搜平片| 8x福利精品第一导航| eeuss影院一区二区三区| 日韩激情中文字幕| 中文字幕亚洲精品在线观看| 日韩视频在线你懂得| 99精品视频一区二区| 国产一区二区三区观看| 日日夜夜精品视频免费| 亚洲图片欧美激情| 国产亲近乱来精品视频| 3d动漫精品啪啪1区2区免费| av中文字幕亚洲| 国产九色精品成人porny| 午夜精品久久久久久久 | 亚洲欧洲日产国码二区| 日韩手机在线导航| 在线观看视频一区| 成人黄色一级视频| 国产在线精品一区二区| 午夜精品久久一牛影视| 亚洲乱码国产乱码精品精小说 | 成人av第一页| 精品无人码麻豆乱码1区2区| 午夜精品免费在线观看| 亚洲精品欧美激情| 亚洲欧美日韩系列| 亚洲色图.com| 亚洲欧美综合另类在线卡通| 欧美激情综合五月色丁香| 国产日韩欧美精品一区| 久久免费精品国产久精品久久久久| 欧美日本高清视频在线观看| 欧美最新大片在线看| 91小视频在线观看| 成人av资源网站| 99在线精品视频| 91丨九色丨黑人外教| 97精品久久久午夜一区二区三区| 成人的网站免费观看| 成人久久视频在线观看| bt7086福利一区国产| 99re热视频精品| 95精品视频在线| 91黄色激情网站| 91精品国产欧美一区二区成人| 欧美日本在线看| 欧美精品一区二区三| 国产婷婷一区二区| 中文字幕一区三区| 亚洲精品国久久99热| 午夜久久久久久久久久一区二区| 青青草97国产精品免费观看| 国产自产视频一区二区三区| 成人手机在线视频| 在线视频你懂得一区| 欧美一区二区三区在线视频| 精品久久久久久久久久久久包黑料| 久久久久久久久久久电影| 中文字幕一区二区三区不卡在线 | 6080国产精品一区二区| 欧美变态tickling挠脚心| 国产农村妇女精品| 亚洲理论在线观看| 老鸭窝一区二区久久精品| 成人精品视频.| 欧美日韩一区二区三区不卡|