1sem matlab 05

This commit is contained in:
Andrew 2019-11-29 08:11:27 +07:00
parent 41d0b979d1
commit 018bac4688
5 changed files with 110 additions and 0 deletions

View file

@ -0,0 +1,4 @@
function [h] = alph_entropy(P);
P = P(P ~= 0);
h = -sum(P.*log2(P));
endfunction;