REGRESS Summary of this function goes here Inputs reg: a trained regressor data: input data Outputs outs: result of applying the learned regression function on data
0001 function [ outs ] = regress( rg, data ) 0002 %REGRESS Summary of this function goes here 0003 % Inputs 0004 % reg: a trained regressor 0005 % data: input data 0006 % Outputs 0007 % outs: result of applying the learned regression function 0008 % on data 0009 outs = [data ones(size(data, 1), 1)] * rg.weights'; 0010 end 0011