pub struct FenwickModel { /* private fields */ }
Implementations§
Source§impl FenwickModel
impl FenwickModel
pub fn with_symbols(symbols: usize, max_denominator: u64) -> Self
Trait Implementations§
Source§impl Clone for FenwickModel
impl Clone for FenwickModel
Source§fn clone(&self) -> FenwickModel
fn clone(&self) -> FenwickModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FenwickModel
impl Debug for FenwickModel
Source§impl Model for FenwickModel
impl Model for FenwickModel
Source§type ValueError = ValueError
type ValueError = ValueError
Invalid symbol error
Source§fn probability(&self, symbol: Option<&usize>) -> Result<Range<u64>, ValueError>
fn probability(&self, symbol: Option<&usize>) -> Result<Range<u64>, ValueError>
Given a symbol, return an interval representing the probability of that
symbol occurring. Read more
Source§fn denominator(&self) -> u64
fn denominator(&self) -> u64
The denominator for probability ranges. See
Model::probability
. Read moreSource§fn max_denominator(&self) -> u64
fn max_denominator(&self) -> u64
The maximum denominator used for probability ranges. See
Model::probability
. Read moreAuto Trait Implementations§
impl Freeze for FenwickModel
impl RefUnwindSafe for FenwickModel
impl Send for FenwickModel
impl Sync for FenwickModel
impl Unpin for FenwickModel
impl UnwindSafe for FenwickModel
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