Crate numcodecs_round

Source
Expand description

CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main

Rounding codec implementation for the numcodecs API.

Structs§

Positive
Positive floating point number
RoundCodec
Codec that rounds the data on encoding and passes through the input unchanged during decoding.

Enums§

RoundCodecError
Errors that may occur when applying the RoundCodec.

Functions§

round
Rounds the input data using $c = \text{round}\left( \frac{x}{precision} \right) \cdot precision$