kpca_map.m

来自「核主成分分析KPCA算法源码[matlab]」· M 代码 · 共 29 行

M
29
字号
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 xsxsc = size(basis.xs,2);% calc kernel matrix for xs and xKxsx = kpca_matrix(basis.xs,x,basis.kernel);% note, that "repmat..." ensures centering of xsy = basis.V'*(Kxsx - repmat(sum(Kxsx,1),[xsc 1])/xsc);

⌨️ 快捷键说明

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