From e67166bc8e87368c74f10160c6f58594bdf093c6 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 13 Nov 2014 22:59:48 +0100 Subject: [PATCH] Implement Gaussian kernel --- ex6/gaussianKernel.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ex6/gaussianKernel.m b/ex6/gaussianKernel.m index 5aa2fec..435a6fa 100644 --- a/ex6/gaussianKernel.m +++ b/ex6/gaussianKernel.m @@ -16,11 +16,8 @@ sim = 0; % % - - - - +sim = exp(-dot(x2-x1,x2-x1)/(2*sigma^2)); % ============================================================= - + end