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

📄 linproj.m

📁 很好的matlab模式识别工具箱
💻 M
字号:
function out1=linproj(arg1, model)% LINPROJ Linear data projection.%% Synopsis:%  Y = linproj(X, model)%  out_data = linproj(in_data, model)%% Description:%  Y = linproj(X, model) linearly projects data in X such that%    Y = model.W'*X + model.b%%  out_data = linproj(in_data, model) projects in_data.X %    out_data.X = model.W'*in_data.X + model.b%    out_data.y = in_data.y%% Input:%  model [struct] linear projection:%   .W [dim x ncomp] Projection matrix.%   .b [ncomp x 1] Bias.% % Example:%  help pca;%  help lda;%% See also %  PCA, LDA, KERNELPROJ.%% About: Statistical Pattern Recognition Toolbox% (C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac% <a href="http://www.cvut.cz">Czech Technical University Prague</a>% <a href="http://www.feld.cvut.cz">Faculty of Electrical Engineering</a>% <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a>% Modifications:% 3-may-2004, VF% 21-jan-03, VF% 16-Jun-2002, VFif isstruct(arg1),  [dim,num_data]=size(arg1.X);  out1.X = model.W'*arg1.X + model.b(:)*ones(1,num_data);  out1.y = arg1.y;  else  [dim,num_data]=size(arg1);  out1 = model.W'*arg1 + model.b(:)*ones(1,num_data);endreturn;

⌨️ 快捷键说明

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