⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdc.m

📁 模式识别工具包
💻 M
字号:
%QDC Quadratic Bayes Normal Classifier%% 	W = qdc(A,r,s)% % Computation of the quadratic classifier between the classes of the % dataset A assuming normal densities. r and s (0 <= r,s <=1) are % regularization parameters used for finding the  covariance matrix % by % % 	G = (1-r-s)*G + r*diag(diag(G)) +% 				s*mean(diag(G))*eye(size(G,1))% % Default: r = 0, s= 0.%% The classification A*W is computed by normal_map. See there for details.% % See also datasets, mappings, nmc, nmsc, ldc, udc, quadrc, normal_map% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsfunction W = qdc(a,r,s)if nargin < 3, s = 0; endif nargin < 2, r = 0; endif nargin < 1 | isempty(a)	W = mapping('qdc',{r,s});	returnend[nlab,lablist,m,k,c,p] = dataset(a);if min(sum(expandd(nlab,c),1)) < 2	error('Classes should contain more than one vector')end[U,G] = meancov(a);GG = [];for j = 1:c	F = G(:,:,j);	F = (1-r-s) * F + r * diag(diag(F)) +s*mean(diag(F))*eye(size(F,1));	GG(:,:,j) = F;endW = mapping('normal_map',{U,GG,p},getlab(U),k,c,1,[]);return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -