Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 400 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 400 Bytes

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