Skip to content

Commit eb5725f

Browse files
author
Merouane Atig
committed
Calculate Gaussian kernel
1 parent b4139d9 commit eb5725f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlclass-ex6/gaussianKernel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
%
1818

1919

20-
20+
sim = exp(-sum((x1 - x2).^2) / (2 * sigma.^2));
2121

2222

2323

0 commit comments

Comments
 (0)