Module max_length

Source
Expand description

Helper trait for creating fixed-length Models

Structs§

Wrapper
A wrapper which converts a fixed_length::Model to a crate::Model.

Enums§

Error
Fixed-length encoding/decoding errors

Traits§

Model
A Model is used to calculate the probability of a given symbol occuring in a sequence. The Model is used both for encoding and decoding. A ‘max-length’ model has a maximum length. The compressed size of a message equal to the maximum length is larger than with a fixed_length::Model, but smaller than with a Model.