Back to godoc.org
github.com/klauspost/compress

package compress

v1.10.10
Latest Go to latest
Published: Jun 23, 2020 | License: BSD-3-Clause | Module: github.com/klauspost/compress

Index

func Estimate

func Estimate(b []byte) float64

Estimate returns a normalized compressibility estimate of block b. Values close to zero are likely uncompressible. Values above 0.1 are likely to be compressible. Values above 0.5 are very compressible. Very small lengths will return 0.

func ShannonEntropyBits

func ShannonEntropyBits(b []byte) int

ShannonEntropyBits returns the number of bits minimum required to represent an entropy encoding of the input bytes. https://en.wiktionary.org/wiki/Shannon_entropy

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier