x: within.website/x/entropy Index | Files

package entropy

import "within.website/x/entropy"

Package entropy has a few helper functions to calculate the bit entropy of strings.


Package Files

doc.go shannon.go

func Shannon Uses

func Shannon(value string) (bits int)

Shannon measures the Shannon entropy of a string. See http://bearcave.com/misl/misl_tech/wavelets/compression/shannon.html for the algorithmic explanation.

Package entropy imports 1 packages (graph). Updated 2019-06-14. Refresh now. Tools for package owners.