ARegressionSimulation

ARegressionSimulation - for i = 1 : 4 for j= 1:4 K(i,j) =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% % Thesis work a simulation actually first simulation % % a simple regression will be done using least square support vector % machines % d = [1 5;2 2;3 1;4 2]; % data points %compute kernel matrix using exponential function that is infinite %dimensional inner products of data points
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for i = 1 : 4 for j= 1:4 K(i,j) = exp(-(d(i,1)-d(j,1))^2); end end eqMatrix =[0 ones(4,1)';ones(4,1) K + .02*eye(4,4)] % resulting equations rightside = [0 5 2 1 2]'; solutionIs = eqMatrix\rightside;...
View Full Document

Ask a homework question - tutors are online