Skip to content

Latest commit

 

History

History

entropy-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Entropy demo

This simple demo shows how to calculate entropy vale for variable data.

E = abs( sum( frequency(char(i)) * log2(frequency(char(i)) ) ) )
  • E - information entropy
  • abs( ) - absolute value
  • sum( ) - sum of values
  • frequency(char(i)) - frequency of character at position i

References