Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateStringShannonEntropy ¶
CalculateStringShannonEntropy measures the Shannon entropy of a string the returned value is a bits/byte 'entropy' value between 0.0 and 8.0, 0 being no, and 8 being maximal entropy. See http://bearcave.com/misl/misl_tech/wavelets/compression/shannon.html for the algorithmic explanation. Code comes from https://rosettacode.org/wiki/Entropy#Go:_Slice_version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.