Crate numcodecs_round
source ·Expand description
Rounding codec implementation for the numcodecs API.
Structs§
- Positive floating point number
- Codec that
rounds the data on encoding and passes through the input unchanged during decoding.
Enums§
- Errors that may occur when applying the
RoundCodec.
Traits§
- Floating point types
Functions§
- Rounds the input
datausingc = round(x / precision) * precision