Prediction by multiple linear regression - Input x: Independent variable (dimension x sample) w: Coefficients (1 x dimension) (end of w is bias) - Output py: Predicted dependent variable (1 x sample) Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function py = vb_pre_multiple_regression(x, w) 0002 % Prediction by multiple linear regression 0003 % 0004 % - Input 0005 % x: Independent variable (dimension x sample) 0006 % w: Coefficients (1 x dimension) (end of w is bias) 0007 % 0008 % - Output 0009 % py: Predicted dependent variable (1 x sample) 0010 % 0011 % Copyright (C) 2011, ATR All Rights Reserved. 0012 % License : New BSD License(see VBMEG_LICENSE.txt) 0013 0014 py = w*[x; ones(1, size(x,2))];