1sem matlab 05
This commit is contained in:
parent
41d0b979d1
commit
018bac4688
5 changed files with 110 additions and 0 deletions
5
1sem/octave/05/alph_redundancy.m
Normal file
5
1sem/octave/05/alph_redundancy.m
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function [r] = alph_redundancy(P);
|
||||
ent = alph_entropy(P);
|
||||
mx_ent = log2(length(P))
|
||||
r = 1 - ent/mx_ent;
|
||||
endfunction;
|
||||
Loading…
Add table
Add a link
Reference in a new issue