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

📄 datast.m

📁 通过核来泛化的判别分析(GDA)代码
💻 M
字号:
function r=DataSt(x)
% center and normalize the x matrix according to the mean and the standard deviation
% of the data
% x uses line vectors (data)

% Gaston Baudat & Fatiha Anouar / 21st October 2000 / Exton PA 19341 USA
% Designed under MatLab for Windows version 5.2.0.3084

[m,n]=size(x);
r=zeros(m,n);
mx=mean(x);
sd=sqrt(diag(cov(x)))';
for i=1:m
   r(i,:)=(x(i,:)-mx)./sd;
end

⌨️ 快捷键说明

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