Expand description
$\frac{x - o}{s}$
codec implementation for the numcodecs
API.
Structs§
- Fixed
Offset Scale Codec - Fixed offset-scale codec which calculates
$c = \frac{x - o}{s}$
on encoding and$d = (c \cdot s) + o$
on decoding.
Enums§
- Fixed
Offset Scale Codec Error - Errors that may occur when applying the
FixedOffsetScaleCodec
.
Functions§
- scale
- Compute
$\frac{x - o}{s}$
over the elements of the inputdata
array. - unscale
- Compute
$(x \cdot s) + o$
over the elements of the inputdata
array. - unscale_
into - Compute
$(x \cdot s) + o$
over the elements of the inputdata
array and write them into theout
put array.