[][src]Struct compress::entropy::ari::apm::Bit

pub struct Bit(_);

Bit probability model

Implementations

impl Bit[src]

pub fn new_equal() -> Bit[src]

Return an equal 0-1 probability

pub fn to_flat(&self) -> FlatProbability[src]

Return flat probability

pub fn to_wide(&self) -> WideProbability[src]

Return wide probability

pub fn from_flat(fp: FlatProbability) -> Bit[src]

Construct from flat probability

pub fn from_wide(wp: WideProbability) -> Bit[src]

Construct from wide probability

pub fn update_zero(&mut self, rate: isize, bias: isize)[src]

Mutate for better zeroes

pub fn update_one(&mut self, rate: isize, bias: isize)[src]

Mutate for better ones

pub fn update(&mut self, value: bool, rate: isize, bias: isize)[src]

Mutate for a given value

Trait Implementations

impl Clone for Bit[src]

impl Copy for Bit[src]

impl Model<bool> for Bit[src]

Auto Trait Implementations

impl RefUnwindSafe for Bit

impl Send for Bit

impl Sync for Bit

impl Unpin for Bit

impl UnwindSafe for Bit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]