[−][src]Struct range_encoding::CumulativeDistributionFrequency
Methods
impl CumulativeDistributionFrequency[src]
impl CumulativeDistributionFrequencypub fn new(probabilities: Vec<u32>) -> Self | [src] |
pub fn width(&self) -> u32 | [src] |
Return the total frequency of symbols in this distribution.
pub fn widths<'a>( | [src] |
Iterate through the widths of the symbols.
pub fn find(&self, probability: u32) -> Option<IndexedSegment> | [src] |
Find a value from its frequency.
pub fn at_index<'a>(&'a mut self, index: usize) -> Option<&'a mut Segment> | [src] |
Find a value from its index
pub fn requirements_for_index( | [src] |
pub fn len(&self) -> usize | [src] |
Return the number of values in this CDF
Auto Trait Implementations
impl Send for CumulativeDistributionFrequency
impl Send for CumulativeDistributionFrequencyimpl Sync for CumulativeDistributionFrequency
impl Sync for CumulativeDistributionFrequencyBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>,