Yp = ccl_learna_pred_proj (F,model) Project a vector onto the image space of a learnt projection Input: F Input vector before projection model Learnt model for nullspace projection, containing fields .P: Learnt projection matrix Output: Yp The resulting vector after projection
0001 function Yp = ccl_learna_pred_proj (F,model) 0002 % Yp = ccl_learna_pred_proj (F,model) 0003 % 0004 % Project a vector onto the image space of a learnt projection 0005 % 0006 % Input: 0007 % 0008 % F Input vector before projection 0009 % model Learnt model for nullspace projection, containing fields 0010 % .P: Learnt projection matrix 0011 % 0012 % Output: 0013 % 0014 % Yp The resulting vector after projection 0015 0016 0017 0018 0019 % CCL: A MATLAB library for Constraint Consistent Learning 0020 % Copyright (C) 2007 Matthew Howard 0021 % Contact: matthew.j.howard@kcl.ac.uk 0022 % 0023 % This library is free software; you can redistribute it and/or 0024 % modify it under the terms of the GNU Lesser General Public 0025 % License as published by the Free Software Foundation; either 0026 % version 2.1 of the License, or (at your option) any later version. 0027 % 0028 % This library is distributed in the hope that it will be useful, 0029 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0030 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0031 % Lesser General Public License for more details. 0032 % 0033 % You should have received a copy of the GNU Library General Public 0034 % License along with this library; if not, write to the Free 0035 % Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 0036 0037 Yp = model.P*F;