pub struct C2Histogram { /* private fields */ }
Expand description
C2Histogram
is a combination of CompressedHistogram
and CompactHistogram
, performing
the memory saving operations from each of them. It is associated with C2Params
.
Each c2 histogram can be stored in n * (c + log2(k)) + c bits, where c = log2(max_exp)
A C2Histogram
must be derrived from a StandardHistogram
using the to_c2
function.
Trait Implementations§
Source§impl Histogram<C2Params, usize, usize> for C2Histogram
impl Histogram<C2Params, usize, usize> for C2Histogram
Source§fn labels(&self, params: &C2Params) -> Option<Box<dyn Iterator<Item = usize>>>
fn labels(&self, params: &C2Params) -> Option<Box<dyn Iterator<Item = usize>>>
If possible, creates and returns an iterator for the labels for which
the histogram has frequencies stored.
Auto Trait Implementations§
impl Freeze for C2Histogram
impl RefUnwindSafe for C2Histogram
impl Send for C2Histogram
impl Sync for C2Histogram
impl Unpin for C2Histogram
impl UnwindSafe for C2Histogram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more