From 25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 Mon Sep 17 00:00:00 2001 From: leochanj Date: Wed, 21 Oct 2020 01:52:54 -0400 Subject: debug libextra and remove matlab --- SD-VBS/benchmarks/stitch/src/matlab/dist2.m | 31 ----------------------------- 1 file changed, 31 deletions(-) delete mode 100755 SD-VBS/benchmarks/stitch/src/matlab/dist2.m (limited to 'SD-VBS/benchmarks/stitch/src/matlab/dist2.m') diff --git a/SD-VBS/benchmarks/stitch/src/matlab/dist2.m b/SD-VBS/benchmarks/stitch/src/matlab/dist2.m deleted file mode 100755 index 89116ac..0000000 --- a/SD-VBS/benchmarks/stitch/src/matlab/dist2.m +++ /dev/null @@ -1,31 +0,0 @@ -function n2 = dist2(x, c) -%DIST2 Calculates squared distance between two sets of points. -% -% Description -% D = DIST2(X, C) takes two matrices of vectors and calculates the -% squared Euclidean distance between them. Both matrices must be of -% the same column dimension. If X has M rows and N columns, and C has -% L rows and N columns, then the result has M rows and L columns. The -% I, Jth entry is the squared distance from the Ith row of X to the -% Jth row of C. -% -% See also -% GMMACTIV, KMEANS, RBFFWD -% - -% Copyright (c) Christopher M Bishop, Ian T Nabney (1996, 1997) - -[ndata, dimx] = size(x); -[ncentres, dimc] = size(c); -if dimx ~= dimc - error('Data dimension does not match dimension of centres') -end - -ct = c'; -opt = (x.^2)'; -op2t = (x.^2)'; -tempT = (ones(ncentres, 1) * sum(opt, 1))'; -n2 = tempT + ones(ndata, 1) * sum(op2t,1) - 2.*(x*ct); - - - -- cgit v1.2.2