sexual%20dependence%20day%20%D0%D4!%B6%C0%C1%A2%BC%CD%C4%EE%C8%D5, sasearchch Chat Chatcunt essearch tC0 Chatcunt Chat i Cunt lc Best n Chatcunt u Chat t Boob rsarsearchhsearchtsearchB Chatcunt ssearch Chatcunt Western%20Authorship%20seedCsearcha1c Boob n Best searchs Best asearchc Szh ³searchesearchrhsearch Cunt h Szh t _searchS Szh h Chatcunt »ò Cunt Ì Szh êsearchÎsearch½ Boob ú°ÙsearchÈ Best Õ Chatcunt ä" href="http://chat-cunt.chatcunt.com/c/Best/Boob/szh/1/feed/Chat-Cunt-1" />Chat Cunt Chatcunt C Best Boob Szh 1 Chat Cunt Chat a Chat l<img src="http://www.tinyradio.co.uk/uploads/91le_chat_noir.jpg"/><a href="http://www.chatcunt.com/">sexual%20dependence%20day%20%D0%D4!%B6%C0%C1%A2%BC%CD%C4%EE%C8%D5,</a> s<embed src=""/>asearchch Chat Chatcunt essearch t<img src="http://upload.wikimedia.org/wikipedia/en/b/bd/Misery_Business-Paramore_single.jpg"/>C<a href="http://chat-cunt.chatcunt.com/Chat/Cunt/szh/apps/index.php/2010/03/">0</a> Chatcunt <a href="http://chat-cunt.chatcunt.com/d/Naked/szh/tight_japan_girl_fucks_hardcore_video2214998.html"> Chat i Cunt lc Best n Chatcunt </a>u Chat t Boob rs<img src="http://gadgetsmedia.vamban.com/2010/11/Samsung-S3350-Chat-335-Full-QWERTY-Mobile-Phone-Price-in-India-Technical-Specifications.jpg"/>arsearchhsearch<embed src=""/>tsearchB Chatcunt ssearch Chatcunt <a href="http://chat-cunt.chatcunt.com/f/Chat/Cunt/szh/%E6%96%AF%E6%B4%9B%E4%BC%90%E5%85%8B">Western%20Authorship%20seed</a>Csearcha<a href="http://forum.chatcunt.com/c/b/Porn/Chat/Cunt/szh/1">1</a>c Boob n Best searchs Best asearchc Szh ³searchesearchr<embed src=""/>hsearch Cunt h Szh t _searchS Szh h Chatcunt »<img src="http://wallpapers.boolsite.net/srv10/Images/Wallpapers/Animaux/Chats/Chat18.jpg"/>ò Cunt Ì Szh êsearchÎsearch½ Boob ú<embed src=""/>°ÙsearchÈ Best Õ Chatcunt ä

Chat Cunt Chat Cunt Women

Chat Cunt Chatcunt C Best Boob Szh 1 Chat Cunt Chat a Chat lsexual%20dependence%20day%20%D0%D4!%B6%C0%C1%A2%BC%CD%C4%EE%C8%D5, sasearchch Chat Chatcunt essearch tC0 Chatcunt Chat i Cunt lc Best n Chatcunt u Chat t Boob rsarsearchhsearchtsearchB Chatcunt ssearch Chatcunt Western%20Authorship%20seedCsearcha1c Boob n Best searchs Best asearchc Szh ³searchesearchrhsearch Cunt h Szh t _searchS Szh h Chatcunt »ò Cunt Ì Szh êsearchÎsearch½ Boob ú°ÙsearchÈ Best Õ Chatcunt ä

Chat Cunt Chatcunt C Best Boob Szh 1 Chat Cunt

Óû§Ãû:   ÃÜÂë: µÇ¼
×¢²á
Ò»ËòÑÌÓêÈÎÆ½Éú
ÿ¸öÈ˶¼ÓÐDZÔÚµÄÄÜÁ¿£¬Ö»ÊǺÜÈÝÒ×:±»Ï°¹ßËùÑڸǣ¬±»Ê±¼äËùÃÔÀë,±»¶èÐÔËùÏûÄ¥
 
Ö÷Ò³²©¿ÍÏà²á|¸öÈ˵µ°¸|ºÃÓÑ|iÌù°É
 
²é¿´ÎÄÕÂ
 
MatlabµÄPCA³ÌÐò
2009-11-29 20:58

function varargout = pca(X, N, method)
%PCA PRINCIPLE COMPONENTS ANALYSIS
% XÊÇn1*n2µÄ£¬n1ÊDZäÁ¿¸öÊý£¬n2ÊÇÑù±¾Êý
% ·µ»ØÖµpÊÇת»»×ø±êϵ N˵Ã÷ͶӰµ½N¸ö×ø±êϵÉÏ
% p*X ²ÅÊÇͶӰ½á¹û
% Performing principal components analysis on the N1-by-N2 real-valued
% data matrix X, where N1 and N2 are the number of features (N1 ±äÁ¿¸öÊý)
% and observations (N2 ²ÉÑù¸öÊý), respectively.
%
% P = pca(X,N,method) returns the N-by-N1 matrix P of basis vectors, one
% basis vector per row, in order of decreasing corresponding eigenvalues,
% i.e. P*X retains the first N principle components(±£³ÖµÄǰN¸öÖ÷³É·Ö). If N is not
% specified, all components (N=N1) are kept.
%
% Two methods are available: 'eig' (default) and 'svd' which solve the
% problem by eigenvalue decomposition and singular value decomposition,
% respectively. 'svd' is running in 'economy' mode. If there are more
% variables than samples (N1>N2), 'svd' is recommended for this code.
%
% [P, D] = pca(X,N,method) also returns all eigenvalues (normalized) in D,
% in descending order.
%
% [P, D, Y] = pca(X,N,method) further returns the N-by-N2 matrix Y = P*X,
% each column of whom is the projection of the corresponding observation
% from X onto the basis vectors contained in P.
%
% Siqing Wu, <6sw21@queensu.ca>
% Version: 1.1, Date: 2008-07-30

error(nargchk(1,3,nargin)) % check the number of arguments
error(nargoutchk(0,3,nargout))

[nr, nc] = size(X);

if nargin<3
    method = 'eig'; % default method
end
if nargin<2
    N = nr; % keep all components
elseif N < 1 || N > nr || round(N)~=N
    fprintf('Input N=%g is not valid; all components will be retained.\n', N)
    N = nr;
end

X = X-repmat(mean(X,2),[1 nc]); % center data

switch method
    case 'eig'
        C = X*X.';
        % should be C/(nc-1) for unbiased estimate of the covariance matix,
        % but won't affect P.
        [E,D] = eig(C); % D lists eigenvalues from small to large
        % rearrange D and E
        D = diag(D);
        D = D(end:-1:1)/max(D);
        E = E(:,end:-1:1)';
        P = E(1:N,:);
       
    case 'svd'
        % Instead of solving X*X' = E*D*E', solve X = U*Sigma*V'
        % X*X' = U*Sigma*V'*V*Sigma*U' = U*Sigma^2*U' -> P = U';
        [U,sigma] = svd(X,'econ'); % "economy size" decomposition
        if N > nc
            fprintf('SVD -> N=%d is used.\n', nc)
            N = nc;
        end
        D = diag(sigma).^2;
        D = D/max(D);
        P = U(:,1:N)';
       
    otherwise
        error('Undefined method!')
end
fprintf('Top %d components are retained; cumulative eigenvalue contribution is %1.2f\n', N, sum(D(1:N))/sum(D))

switch nargout
    case {}
        varargout = {};
    case {}
        varargout = {};
    case {}
        Y = P*X;
        varargout = {};
end


 
×î½ü¶ÁÕߣº
 
ÍøÓÑÆÀÂÛ£º
·¢±íÆÀÂÛ£º
ÐÕ¡¡Ãû£º
*ÐÕÃû×Ϊ50×Ö½Ú
 
ÍøÖ·»òÓÊÏ䣺 (Ñ¡Ìî)
 
ÄÚ¡¡ÈÝ£º
 
     

   
°ïÖúÖÐÐÄ | ¿Õ¼ä¿Í·þ | Í¶ËßÖÐÐÄ | ¿Õ¼äЭÒé
©2012 Baidu