Back to

package compress

Latest Go to latest
Published: Jun 23, 2020 | License: BSD-3-Clause | Module:


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.

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

Jump to identifier

Keyboard shortcuts

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