Expand description
Helpers and statistics.
CountBitReader and CountBitWriter keep track of the number
of bits read or written to a BitRead
and BitWrite, respectively,
optionally printing on standard error the operations performed on the stream.
DbgBitReader and DbgBitWriter print on standard error all
operations performed by a BitRead or
BitWrite.
CodesStats keeps track of the space needed to store a stream of
integers using different codes.
With the implied feature, it also provides
sample_implied_distribution, an infinite iterator that returns samples
from the implied distribution of a code, and the helper function
get_implied_distribution.
FindChangePoints finds, using exponential search, the points where a
non-decreasing monotonic function changes value.
Re-exports§
pub use stats::CodesStats;pub use stats::CodesStatsWrapper;
Modules§
Structs§
- Count
BitReader - A wrapper around a
BitReadthat keeps track of the number of bits read and optionally prints on standard error the operations performed on the stream. - Count
BitWriter - A wrapper around a
BitWritethat keeps track of the number of bits written and optionally prints on standard error the operations performed on the stream. - DbgBit
Reader - A wrapper over a
BitReadthat reports on standard error all operations performed, including all code reads. - DbgBit
Writer - A wrapper over a
BitWritethat reports on standard error all operations performed, including all code writes. - Find
Change Points - Iterates over the points where the given function changes value. This only works for monotonic non-decreasing functions.