Search Comments and Ratings

go

   
Date File Comment by Comment Rating
05 Mar 2013 Mutual Information computation A self-contained package for computing mutual information, joint/conditional probability, entropy Author: Hanchuan Peng

Hanchuan Peng (view profile)

Davis

Davis (view profile)

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);
end
plot(a)
set(gca,'xticklabel',[0:.2:2])
ylabel('Est. Entropy')
xlabel('Scaling factor')

Comment only
09 Feb 2013 Light Bartlein Color Maps Generates one of four colormaps using schemes proposed in technical literature Author: Robert Bemis

Robert Bemis (view profile)

Davis

Davis (view profile)

sorry, that's line 44 -- where arg parsing is done

Comment only
09 Feb 2013 Light Bartlein Color Maps Generates one of four colormaps using schemes proposed in technical literature Author: Robert Bemis

Robert Bemis (view profile)

Davis

Davis (view profile)

Great function, though it bugs if you call lbmap with only a text argument, e.g.
lbmap('Blue')
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.

Comment only

Contact us