91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 32KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2022-12-30
  • 語言: Matlab
  • 標簽: PCA??MATLAB版??

資源簡介

PCA 主成分分析代碼 MATLAB版 PCA 主成分分析代碼 MATLAB版 PCA 主成分分析代碼 MATLAB版

資源截圖

代碼片段和文件信息

function?distMat?=?createDistMat?(proj?metric)
%
%?PROTOTYPE
%?function?distMat?=?createDistMat?(proj?metric)
%?
%?USAGE?EXAMPLE(S)
%?pcaDistMatCos?=?createDistMat(pcaProj?‘COS‘);
%
%?GENERAL?DEscriptION
%?Calculates?distance?matrix.?Creates?a?matrix?of?distances?between?any
%?pair?of?images?(vectors)?given?the?metric.?L1?(City?Block)?L2
%?(Euclidean)?and?COS?(Cosine?Angle)?are?supported.?Once?the?distance
%?matrix?for?a?given?metric?is?calculated?feret?tests?(with?specific
%?gallery?and?probe?test?sets)?or?some?other?tests?(e.g.?various?permutation
%?tests)?are?easily?implemented.
%?
%?REFERENCES
%?-
%?
%?INPUTS:
%?proj??????-?projection?matrix?(all?images?projected?onto?a?subspace)
% if?using?pca.m?give?pcaProj?as?the?input
%?metric????-?metric?(L1?L2?MAH?and?COS?supported)
%
%?OUTPUTS:
%?distMat???-?distance?matrix?where?(ij)?element?is?the?distance?between
%?????????????i-th?and?j-th?image?projection?given?the?metric?class
%?????????????double?size?(number?of?images)^2
%
%?NOTES?/?COMMENTS
%?*?Developed?using?Matlab?7
%
%?REVISION?HISTORY
%?-
%?
%?RELATED?FUNCTIONS?(SEE?ALSO)
%?pdist?(Matlab)?squareform?(Matlab)?feret?pca
%?
%?ABOUT
%?Created:????????03?Sep?2005
%?Last?Update:????-
%?Revision:???????1.0
%?
%?AUTHOR:???Kresimir?Delac
%?mailto:???kdelac@ieee.org
%?URL:??????http://www.vcl.fer.hr/kdelac
%
%?WHEN?PUBLISHING?A?PAPER?AS?A?RESULT?OF?RESEARCH?CONDUCTED?BY?USING?THIS?CODE
%?OR?ANY?PART?OF?IT?MAKE?A?REFERENCE?TO?THE?FOLLOWING?PAPER:
%?Delac?K.?Grgic?M.?Grgic?S.?Independent?Comparative?Study?of?PCA?ICA?and?LDA?
%?on?the?FERET?Data?Set?International?Journal?of?Imaging?Systems?and?Technology
%?Vol.?15?Issue?5?2006?pp.?252-260
%


%?Memory?allocation
distMat?=?zeros(max(size(proj)));

switch?(metric)
????
????case?‘L1‘
????????distMat?=?pdist(proj‘?‘cityblock‘);
????case?‘L2‘
????????distMat?=?pdist(proj‘?‘euclidean‘);
????case?‘COS‘
????????distMat?=?pdist(proj‘?‘cosine‘);
????????
????otherwise
????????error(‘%s?metric?not?supported.‘?metric);

end;????%?switch?(metric)?ends?here

distMat?=?squareform(distMat);

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2162??2007-01-06?23:46??pca\createDistMat.m

?????文件???????2979??2007-01-06?23:42??pca\dup1.mat

?????文件???????1101??2007-01-06?23:42??pca\dup2.mat

?????文件???????4177??2007-01-06?23:42??pca\fb.mat

?????文件????????784??2007-01-06?23:42??pca\fc.mat

?????文件???????5590??2007-01-06?23:46??pca\feret.m

?????文件???????4169??2007-01-06?23:42??pca\feretGallery.mat

?????文件??????14686??2007-01-06?23:43??pca\listAll.mat

?????文件???????5476??2007-01-06?23:46??pca\pca.m

?????文件???????2510??2007-01-06?23:51??pca\Readme.txt

?????文件???????2980??2007-01-06?23:47??pca\trainList.mat

?????目錄??????????0??2008-07-21?14:01??pca

-----------?---------??----------?-----??----

????????????????46614????????????????????12


評論

共有 條評論