Crate numcodecs_linear_quantize

Source
Expand description

CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main

Linear Quantization codec implementation for the numcodecs API.

Structs§

LinearQuantizeCodec
Lossy codec to reduce the precision of floating point data.
LinearQuantizeHeaderError
Opaque error for when encoding or decoding the header fails

Enums§

LinearQuantizeBins
Number of bins for quantization, written in base-2 scientific notation.
LinearQuantizeCodecError
Errors that may occur when applying the LinearQuantizeCodec.
LinearQuantizeDType
Data types which the LinearQuantizeCodec can quantize

Traits§

Unsigned
Unsigned binary types.

Functions§

quantize
Linear-quantize the elements in the data array using the quantize closure.
reconstruct
Reconstruct the linear-quantized encoded array using the floatify closure.
reconstruct_into
Reconstruct the linear-quantized encoded array using the floatify closure into the decoded array.