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

📄 kpca_map.m

📁 KPCA是一种非线性的盲源分离方法
💻 M
字号:
function y = kpca_map(x,basis)
%KPCA_MAP maps input vectors onto the kpca subspace.
%
%   usage
%      psi = kpca_map(x,basis);
%
%   input
%      x        matrix of column vectors, containing the input
%               vectors
%      basis    a kpca basis, generated by kpca_calc (see there)
%
%   output
%      y        matrix of column vectors, containing the mapped
%               input vectors
%
%   see also
%      kpca_plot, kpca_calc
%
%   STH * 12MAR2002

% column of xs
xsc = size(basis.xs,2);

% calc kernel matrix for xs and x
Kxsx = kpca_matrix(basis.xs,x,basis.kernel);

% note, that "repmat..." ensures centering of xs
y = basis.V'*(Kxsx - repmat(sum(Kxsx,1),[xsc 1])/xsc);

⌨️ 快捷键说明

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