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

📄 ica.m

📁 The goal of SPID is to provide the user with tools capable to simulate, preprocess, process and clas
💻 M
字号:
function mappedX = ica(X)
%ICA Perform Independent Component Analysis (ICA) on vector X
% 
%   mappedX = ica(X)
%
% Performs Independent Component Analysis (ICA) on vector X. The resulting
% components are returned in mappedX.
%
%

% This file is part of the Matlab Toolbox for Dimensionality Reduction v0.1b.
% The toolbox can be obtained from http://www.cs.unimaas.nl/l.vandermaaten
% You are free to use, change, or redistribute this code in any way you
% want. However, it is appreciated if you maintain the name of the original
% author.
%
% (C) Laurens van der Maaten
% Maastricht University, 2007

    disp('Extracting independent components...');

    % Compute product between square-root of inverse covariance matrix and zeromean data
    mappedX = sqrtm(inv(cov(X'))) * (X - repmat(mean(X, 2), 1, size(X, 2)));
    
    % Perform SVD of sum(Y.^2).*Y*Y
	[mappedX, ss, vv] = svd((repmat(sum(mappedX .* mappedX, 1), size(mappedX, 1), 1) .* mappedX) * mappedX');

⌨️ 快捷键说明

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