Crate numcodecs_fixed_offset_scale

Source
Expand description

CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main

(x-o) * s codec implementation for the numcodecs API.

Structs§

  • Fixed offset-scale codec which calculates c = (x-o) / s on encoding and d = (c*s) + o on decoding.

Enums§

Functions§

  • Compute (x-o) / s over the elements of the input data array.
  • Compute (x*s) + o over the elements of the input data array.
  • Compute (x*s) + o over the elements of the input data array and write them into the output array.