entropy

package
Version: v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2020 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shannon

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.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL