bitcomp

package
v0.0.0-...-36347e2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bits2Delta

func Bits2Delta(i int) float64

func DecodeRice

func DecodeRice(src bitio.Reader, k uint) (val uint, err error)

func Delta2Bits

func Delta2Bits(f float64) int

func EncodeRice

func EncodeRice(dst bitio.Writer, k, val uint) (err error)

Types

type Sampler

type Sampler struct {
	Last float64
	// contains filtered or unexported fields
}

func (*Sampler) Compress

func (s *Sampler) Compress(raw, dec []float64, dst bitio.Writer) (err error)

func (*Sampler) Init

func (s *Sampler) Init(bz int)

Jump to

Keyboard shortcuts

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