Watch this Author's files
Maybe I'm missing something, but I think this code produces weird behavior with vectors of low values, e.g. returning entropy of 0 for [1:10] * .0001.
Run this code and see for yourself:
a = ;
for i = 1:20e4
a(i) = entropy([1:10] .* i/10e4);
sorry, that's line 44 -- where arg parsing is done
Great function, though it bugs if you call lbmap with only a text argument, e.g.
Error using /
Matrix dimensions must agree.
Error in linspace (line 31)
y = d1 + (0:n1).*(d2 - d1)/n1;
Error in lbmap (line 62)
idx2 = linspace(0,1,n);
a simple change in line 4 can resolve this.