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

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

?? rafisher2cda.m

?? Fisher線性判別分類器應用于IRIS數據集的例子
?? M
?? 第 1 頁 / 共 2 頁
字號:
function [RAFisher2cda] = RAFisher2cda(X,pp,c,alpha)
% RAFISHER2CDA Canonical Discriminant Analysis.
%
%[As well as the previous RAFisher1, this file was named RAFisher2 in honor to 
%Sir Ronald Aylmer Fisher (17 Feb.,1890-29 Jul.,1962), one of the most insightful
%and influential statisticians of all times. His pioneering work on discriminant 
%functions was made in 1936 (a pdf file of this paper is attached in this zip), 
%presenting an analysis on data collected by Edgar Anderson on three species of
%iris flowers (a classical set of multivariate data and also attached in this zip).]
%
%-Again, we encourage to all the users to initiate a chain of petitions to make 
%possible to carry to the big or small screen the life of this notable genius of our
%time. A possible title of the film would be 'Fisher's geometric mind'.-His work shaped
%the world of statistics, he made it as we know it today.-
%
%While RAFisher1 is a procedure that produces very different functions for classification
%that are also called linear discriminant analysis, RAFisher2cda is a dimension-reduction
%technique related to principal component analysis and canonical correlation called 
%canonical discriminant analysis. It derives the canonical coefficients parallels that
%of one-way MANOVA and it finds linear combinations of the quantitative variables that
%provide maximal separation between the classes or groups in much the same way that 
%principal components summarize total variation. The output produced are the canonical
%coefficients and the scored canonical variables. The canonical coefficients are rotated.
%Also, it proceeds with a Bartlett's approximate chi-squared statistic for testing the 
%canonical correlation coefficients.
%
%In summary, the canonical discriminant analysis:

%      - Transform the variables so that the pooled within-group covariance matrix is
%        an identity matrix.
%      - Compute group means on the transformed variables.
%      - Perform a principal component analysis on the means, weighting each mean by
%        the number of observations in the group. The eigenvalues are equal to the ratio
%        of between-group variation to the within-group variation in the direction of
%        each principal component. Here, the principal component analysis is runned by
%        the singular value decomposition.
%      - Back-transform the principal components into the space of the original variables,
%        obtaining the canonical variables.
%
%File gives you the option to get an unbiased or maximum-likelihood parameter estimation.
%
%   Syntax: function [RAFisher2cda] = RAFisher2cda(X,pp,c,alpha) 
%      %     Inputs:%          X - multivariate data matrix. 
%         pp - vector of prior probabilities (unknown,pp = 1;
%              known [default], pp = 2 [you must to give it]).
%          c - asking for ellipse confidence bounds (yes:c = 1;
%              [default], no:c = 2).
%      alpha - significance level (default = 0.05). Used for the 
%              Chi-square tests and for the ellipse confidence bounds.
%      %     Output:%          - Canonical discriminant functions. It includes:
%            constant, variates, eigenvalues, percentages and
%            cumulative percentages. Also the Bartlett's approximate 
%            chi-squared statistic for testing the canonical correlation
%            coefficients. Optionally, it also can show you the pair-wise
%            canonical scores with its ellipses confidence bounds.
%
%    Example: From the Table 11.5 (Iris data) of Johnson and Wichern (1992, p. 562), 
%             with 150 observations (n = 150), four variables (p = 4) [all = cm] and 
%             three groups (g = 3; sizes: 50,50,50). We are interested to apply a 
%             Canonical Discriminant Analysis with an unbiased parameter estimation.
%             It is considering equal prior probabilities (pp = 1) and the groups
%             ellipse bound with a probability of 0.95 (alpha value of 0.05).
%
%        ------------------------------------------------------------------------------
%                   1                          2                          3 
%        ------------------------------------------------------------------------------
%          x1    x2    x3    x4       x1    x2    x3    x4       x1    x2    x3    x4  
%        ------------------------------------------------------------------------------
%         5.1   3.5   1.4   0.2      7.0   3.2   4.7   1.4      6.3   3.3   6.0   2.5
%         4.9   3.0   1.4   0.2      6.4   3.2   4.5   1.5      5.8   2.7   5.1   1.9
%         4.7   3.2   1.3   0.2      6.9   3.1   4.9   1.5      7.1   3.0   5.9   2.1
%         4.6   3.1   1.5   0.2      5.5   2.3   4.0   1.3      6.3   2.9   5.6   1.8
%         5.0   3.6   1.4   0.2      6.5   2.8   4.6   1.5      6.5   3.0   5.8   2.2
%         5.4   3.9   1.7   0.4      5.7   2.8   4.5   1.3      7.6   3.0   6.6   2.1
%          .     .     .     .        .     .     .     .        .     .     .     .
%          .     .     .     .        .     .     .     .        .     .     .     .
%          .     .     .     .        .     .     .     .        .     .     .     .
%         5.1   3.8   1.6   0.2      5.7   2.9   4.2   1.3      6.3   2.5   5.0   1.9
%         4.6   3.2   1.4   0.2      6.2   2.9   4.3   1.3      6.5   3.0   5.2   2.0
%         5.3   3.7   1.5   0.2      5.1   2.5   3.0   1.1      6.2   3.4   5.4   2.3
%         5.0   3.3   1.4   0.2      5.7   2.8   4.1   1.3      5.9   3.0   5.1   1.8
%        ------------------------------------------------------------------------------
%
%      Group 1 = Iris setosa (n1 = 50); Group 2 = Iris versicolor (n2 = 50);
%      Group 3 = Iris virginica (n3 = 50).
%      Var1 (x1) = sepal length; Var2 (x2) = sepal with;
%      Var3 (x3) = petal length; Var4 (x4) = petal with.
%
%             Total data matrix must be:
%      You can get the X-matrix by calling to iris data file provided in
%      the zip as 
%                    load path-drive:irisdata 
% 
%             Calling on Matlab the function: 
%                RAFisher2cda(X,1)
%
%             Answer is:
%
%  It was asking for the ellipses confidence bounds. 
%  Do you want an unbiased (1) or maximum-likelihood parameter estimation? (2):1
% 
%  Canonical Discriminant Functions.
%  --------------------------------------------------------------------------------
%  Constant =
%     -2.1051    6.6615
%
%  Variates =
%      0.8294    0.0241
%      1.5345    2.1645
%     -2.2012   -0.9319
%     -2.8105    2.8392
%
%  Eigenvalue =
%     32.1919    0.2854
%
%  Percentage =
%     99.1213    0.8787
%
%  CumulativePercentage =
%     99.1213  100.0000
%  --------------------------------------------------------------------------------
%  Functions = columns. On variates, Variate1 = first row and so forth to 4
%
%  Chi-square Tests with Successive Roots Removed.
%  -------------------------------------------------------------------------
%  Removed    Eigenvalue   CanCor      LW       Chi-sqr.     df       P
%  -------------------------------------------------------------------------
%              32.1919     0.9848    0.0234     546.1153      8    0.0000
%     1         0.2854     0.4712    0.7780      36.7807      3    0.0000
%  -------------------------------------------------------------------------
%  With a given significance of: 0.05
%  If P-value >= alpha, results not significative. Else, it is significative.
%
%  The pair-wise plots you can get are: 1
%  --------------
%  plots =
%
%       1     2
%
%  --------------
%  Give me the pair of factors to plot [a b]: [1 2]
%  Do you need another plot? (y/n): n
%
%
%  Created by A. Trujillo-Ortiz, R. Hernandez-Walls and S. Perez-Osuna
%             Facultad de Ciencias Marinas
%             Universidad Autonoma de Baja California
%             Apdo. Postal 453
%             Ensenada, Baja California
%             Mexico.
%             atrujo@uabc.mx
%
%  Copyright (C)  April 15, 2004. 
%
%  To cite this file, this would be an appropriate format:
%  Trujillo-Ortiz, A., R. Hernandez-Walls and S. Perez-Osuna. (2004). 
%    RAFisher2cda:Canonical Discriminant Analysis. A MATLAB file. 
%    [WWW document]. URL http://www.mathworks.com/matlabcentral/fileexchange/
%    loadFile.do?objectId=4836&objectType=FILE
%
%  References:% %  Johnson, R. A. and Wichern, D. W. (1992), Applied Multivariate Statistical Analysis.
%              3rd. ed. New-Jersey:Prentice Hall. Chapter 11, pp. 493-572.
%  Fisher, R. A. (1936), The use of multiple measurements in taxonomic problems. Annals
%              of Eugenics, 7: 179-188.
%

if nargin < 4,
   alpha = 0.05; %(default)
end; 

if (alpha <= 0 | alpha >= 1)
   fprintf('Warning: significance level must be between 0 and 1\n');
   return;
end;

if nargin < 3, 
   c = 1; %(default)
end;

disp(' ')
if c == 1;
   fprintf('It was asking for the ellipses confidence bounds.');
else c == 2;
   fprintf('It was not asking for the ellipses confidence bounds.');
end;
disp(' ')

if nargin < 2,
   pp = 1; %(default)
end;

if nargin < 1, 
   error('Requires at least one input arguments.');
   return;
end;

Y = X(:,2:end);
G = X(:,1);

g = max(G);  %number of groups

%Vector of sample sizes per group.
n = [];
indice = X(:,1);
for i = 1:g
   Xe = find(indice==i);
   eval(['X' num2str(i) '= X(Xe,2);']);
   eval(['n' num2str(i) '= length(X' num2str(i) ') ;'])
   eval(['xn = n' num2str(i) ';'])
   n = [n,xn];
end;

r = 1;
r1 = n(1);

%Partition of the group mean and covariance matrices.
M = [];
for k = 1:g
   eval(['M' num2str(k) '= mean(Y(r:r1,:));']);
   eval(['m = M' num2str(k) ';'])
   if k < g
      r = r+n(k);
      r1 = r1+n(k+1);
   end;
   M = [M;m];
end;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性色综合网| 欧美高清视频不卡网| av电影天堂一区二区在线| 99re亚洲国产精品| 日韩午夜激情免费电影| 国产精品视频yy9299一区| 日韩高清不卡一区二区| 91在线无精精品入口| 日韩手机在线导航| 亚洲综合色区另类av| 国产成人午夜精品5599| 日韩色视频在线观看| 一区二区欧美国产| 91香蕉视频在线| 7777精品伊人久久久大香线蕉最新版| 亚洲视频狠狠干| 蜜桃精品视频在线| 在线一区二区三区做爰视频网站| 久久精品亚洲乱码伦伦中文| 琪琪一区二区三区| 欧美日韩一本到| 亚洲欧美另类久久久精品2019| 国精产品一区一区三区mba视频 | 日韩高清在线一区| 91美女在线视频| 国产精品美日韩| 国产成人午夜精品5599| 久久免费偷拍视频| 国产精品一区二区久久不卡| 久久久亚洲国产美女国产盗摄 | 精品日韩av一区二区| 一区二区三区日本| 在线观看视频一区| 亚洲欧美在线视频观看| 99在线精品视频| 亚洲欧洲成人av每日更新| 白白色亚洲国产精品| 国产精品久久久久久久久久免费看| 国产成人在线网站| 日本一区二区免费在线| 成人福利视频在线看| 国产精品进线69影院| 99久久er热在这里只有精品66| 欧美国产激情一区二区三区蜜月| 国内精品免费在线观看| 国产婷婷色一区二区三区在线| 高清国产一区二区| 亚洲视频免费观看| 欧美日韩亚洲不卡| 中文字幕一区二区5566日韩| 国产精品三级久久久久三级| 久久国产精品99精品国产| 欧美区在线观看| 欧美aaaaa成人免费观看视频| 欧美成人精品3d动漫h| 国产二区国产一区在线观看| 国产精品国产成人国产三级| 在线观看欧美日本| 蜜桃视频在线观看一区| 国产欧美一区二区精品性| 色综合久久综合网97色综合| 亚洲国产视频网站| 亚洲精品一区二区三区在线观看| 国产 欧美在线| 亚洲aⅴ怡春院| 国产日韩成人精品| 欧美精品丝袜久久久中文字幕| 久久99精品久久久久久国产越南| 国产欧美日韩综合精品一区二区| 成人av网在线| 精品亚洲成av人在线观看| 精品国产欧美一区二区| 99久久99久久精品免费看蜜桃| 亚洲成av人片一区二区梦乃| 久久久亚洲精华液精华液精华液 | 欧美男女性生活在线直播观看| 久久国产精品色婷婷| 国产精品第一页第二页第三页| 欧美精品久久一区| 不卡免费追剧大全电视剧网站| 日韩激情视频在线观看| 国产精品天干天干在观线 | 国产精品一区二区在线播放| 亚洲欧美日韩一区二区三区在线观看| 日韩欧美一级在线播放| 97se亚洲国产综合自在线观| 久久99精品国产.久久久久久| 亚洲精品免费视频| 国产清纯在线一区二区www| 欧美一区二区大片| 欧美在线高清视频| av电影在线不卡| 国产精品白丝jk白祙喷水网站| 亚洲va欧美va人人爽午夜| 国产精品麻豆久久久| 亚洲精品一区二区三区福利 | 国产乱人伦偷精品视频免下载| 夜色激情一区二区| 国产精品日产欧美久久久久| 欧美一级国产精品| 欧美精品一卡二卡| 欧美日韩国产首页| 在线看日韩精品电影| caoporn国产一区二区| 国产成人丝袜美腿| 精品一区二区免费在线观看| 免播放器亚洲一区| 天天亚洲美女在线视频| 亚洲影院在线观看| 樱桃视频在线观看一区| 亚洲欧美韩国综合色| 亚洲欧美日本在线| 自拍av一区二区三区| **欧美大码日韩| 亚洲精品日产精品乱码不卡| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 日本aⅴ精品一区二区三区 | 中文字幕一区二区三区视频| 丝袜美腿一区二区三区| 国产一区二区三区在线观看免费| 亚洲成人综合网站| 夜夜精品视频一区二区| 亚洲在线免费播放| 肉丝袜脚交视频一区二区| 亚洲成人www| 日韩av网站免费在线| 美女国产一区二区三区| 九九在线精品视频| 粉嫩欧美一区二区三区高清影视 | 日韩一区二区高清| 精品国产一二三区| 国产午夜精品久久久久久久| 国产精品传媒入口麻豆| 亚洲免费观看高清完整版在线| 亚洲三级电影网站| 亚洲va天堂va国产va久| 秋霞影院一区二区| 国产酒店精品激情| 99riav久久精品riav| 欧美调教femdomvk| 日韩欧美精品在线| 国产精品素人视频| 亚洲综合色区另类av| 久久精品72免费观看| 成人做爰69片免费看网站| 一本久道中文字幕精品亚洲嫩| 欧美日韩一区二区在线视频| 亚洲精品在线网站| www.欧美色图| 性做久久久久久久免费看| 日韩1区2区3区| 成人在线视频首页| 中文字幕中文字幕一区| 亚洲午夜久久久久久久久电影网 | 一区二区中文字幕在线| 午夜伊人狠狠久久| 国产成人午夜精品5599| 欧美人伦禁忌dvd放荡欲情| 精品99一区二区| 一区二区欧美视频| 欧美丝袜丝交足nylons图片| 精品日韩欧美一区二区| 一区二区三区.www| 国产成人aaa| 5566中文字幕一区二区电影 | 日韩视频免费观看高清完整版 | 精品成人佐山爱一区二区| 亚洲精品成人在线| 狠狠色丁香婷综合久久| 欧美人牲a欧美精品| 日韩美女一区二区三区| 亚洲日本中文字幕区| 精品一二线国产| 欧美日韩另类一区| 亚洲欧美一区二区三区孕妇| 国产一区二区三区日韩| 欧美美女网站色| 一区二区三区四区乱视频| 国产成人av一区二区三区在线| 欧美一区二区在线观看| 亚洲亚洲精品在线观看| 91小视频在线| 中文字幕第一区二区| 国产在线精品一区二区不卡了 | 99精品视频中文字幕| 久久理论电影网| 日本欧美一区二区三区| 欧美无砖专区一中文字| 亚洲精品视频在线看| 成人精品一区二区三区四区| 久久男人中文字幕资源站| 久久国产婷婷国产香蕉| 中文字幕一区二区三区在线不卡 | 国产精品系列在线观看| 欧美成人三级在线| 久久er精品视频| 精品国产乱码久久久久久蜜臀 | 精品日韩99亚洲| 麻豆国产精品官网| 欧美成人福利视频|