Documentation
¶
Index ¶
- Constants
- func ALPDecode(input []int64, exponent int) []float64
- func ALPEncode(input []float64, exponent int) ([]int64, int, error)
- func AutoRiceParam(deltas []int64) int
- func DeltaDecode(deltas []int64, first int64, second int64) ([]int64, error)
- func DeltaEncode(input []int64) (deltas []int64, first int64, second int64, err error)
- func GolombRiceDecode(data []byte, bitCount int, valueCount int, m int) ([]uint64, error)
- func SimpleDeltaDecode(deltas []int64, first int64) ([]int64, error)
- func SimpleDeltaEncode(input []int64) (deltas []int64, first int64, err error)
- func ZigZagDecode(input []uint64) ([]int64, error)
- func ZigZagEncode(input []int64) ([]uint64, error)
- type Header
- type Mode
- type PackedData
Constants ¶
View Source
const HeaderSize = 24
Variables ¶
This section is empty.
Functions ¶
func AutoRiceParam ¶
AutoRiceParam calculates the optimal Rice parameter for given data. Uses the median of absolute values as a heuristic, rounded to nearest power of 2. This provides good compression without requiring manual tuning.
func DeltaEncode ¶
func GolombRiceDecode ¶
func SimpleDeltaEncode ¶
Returns deltas starting from idx 1. Faster than predictive delta but less effective for linear data.
func ZigZagDecode ¶
func ZigZagEncode ¶
Types ¶
type PackedData ¶
PackedData holds the encoded byte data along with metadata needed for decoding
func GolombRiceEncode ¶
func GolombRiceEncode(input []uint64, m int) (PackedData, error)
Click to show internal directories.
Click to hide internal directories.