Struct constriction::stream::model::ContiguousSymbolTable
source · pub struct ContiguousSymbolTable<Table>(/* private fields */);
Expand description
Internal representation of ContiguousCategoricalEntropyModel
.
This type will become private once anonymous return types are allowed in trait methods.
Do not use it outside of the constriction
library.
Trait Implementations§
source§impl<Table: Clone> Clone for ContiguousSymbolTable<Table>
impl<Table: Clone> Clone for ContiguousSymbolTable<Table>
source§fn clone(&self) -> ContiguousSymbolTable<Table>
fn clone(&self) -> ContiguousSymbolTable<Table>
Returns a copy 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<Table: Debug> Debug for ContiguousSymbolTable<Table>
impl<Table: Debug> Debug for ContiguousSymbolTable<Table>
source§impl<Symbol, Probability, Table> SymbolTable<Symbol, Probability> for ContiguousSymbolTable<Table>where
Probability: BitArray,
Table: AsRef<[Probability]>,
Symbol: BitArray + Into<usize>,
usize: AsPrimitive<Symbol>,
impl<Symbol, Probability, Table> SymbolTable<Symbol, Probability> for ContiguousSymbolTable<Table>where
Probability: BitArray,
Table: AsRef<[Probability]>,
Symbol: BitArray + Into<usize>,
usize: AsPrimitive<Symbol>,
fn left_cumulative(&self, index: usize) -> Option<Probability>
source§unsafe fn left_cumulative_unchecked(&self, index: usize) -> Probability
unsafe fn left_cumulative_unchecked(&self, index: usize) -> Probability
Safety Read more
source§unsafe fn symbol_unchecked(&self, index: usize) -> Symbol
unsafe fn symbol_unchecked(&self, index: usize) -> Symbol
Safety Read more
fn support_size(&self) -> usize
source§fn quantile_function<const PRECISION: usize>(
&self,
quantile: Probability
) -> (Symbol, Probability, Probability::NonZero)
fn quantile_function<const PRECISION: usize>( &self, quantile: Probability ) -> (Symbol, Probability, Probability::NonZero)
Bisects the symbol table to find the bin that contains
quantile
.impl<Table: Copy> Copy for ContiguousSymbolTable<Table>
Auto Trait Implementations§
impl<Table> RefUnwindSafe for ContiguousSymbolTable<Table>where
Table: RefUnwindSafe,
impl<Table> Send for ContiguousSymbolTable<Table>where
Table: Send,
impl<Table> Sync for ContiguousSymbolTable<Table>where
Table: Sync,
impl<Table> Unpin for ContiguousSymbolTable<Table>where
Table: Unpin,
impl<Table> UnwindSafe for ContiguousSymbolTable<Table>where
Table: UnwindSafe,
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