pub struct FenwickModel { /* private fields */ }
Implementations§
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<&Self::Symbol>,
) -> Result<Range<Self::B>, Self::ValueError>
fn probability( &self, symbol: Option<&Self::Symbol>, ) -> Result<Range<Self::B>, Self::ValueError>
Given a symbol, return an interval representing the probability of that
symbol occurring. Read more
Source§fn max_denominator(&self) -> Self::B
fn max_denominator(&self) -> Self::B
The maximum denominator used for probability ranges. See
Model::probability
. Read moreSource§fn symbol(&self, value: Self::B) -> Option<Self::Symbol>
fn symbol(&self, value: Self::B) -> Option<Self::Symbol>
Given a value, return the symbol whose probability range it falls in. Read more
Source§fn denominator(&self) -> Self::B
fn denominator(&self) -> Self::B
The denominator 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