Code covered by the BSD License
by Matej Kristan
09 Apr 2013
(Updated 08 May 2013)
A very fast multivariate bandwidth calculation for KDE that can even be calculated from a GMM.
function s = col_sum(x)
% COL_SUM Sum for each column.
% A more readable alternative to sum(x,1).
s = sum(x,1);