Trait wfst::semiring::Weight
[−]
[src]
pub trait Weight: PartialEq + Clone + Debug { fn is_member(&self) -> bool; fn plus(&self, rhs: &Self) -> Self; fn times(&self, rhs: &Self) -> Self; fn zero() -> Self; fn one() -> Self; fn none() -> Self; fn approx_eq(&self, rhs: &Self, delta: Option<f32>) -> bool; fn quantize(&self, delta: Option<f32>) -> Self; fn divide(&self, rhs: &Self, divtype: Option<DivideType>) -> Self; fn reverse(&self) -> Self; fn wtype() -> String; }
Required Methods
fn is_member(&self) -> bool
fn plus(&self, rhs: &Self) -> Self
fn times(&self, rhs: &Self) -> Self
fn zero() -> Self
fn one() -> Self
fn none() -> Self
fn approx_eq(&self, rhs: &Self, delta: Option<f32>) -> bool
fn quantize(&self, delta: Option<f32>) -> Self
fn divide(&self, rhs: &Self, divtype: Option<DivideType>) -> Self
fn reverse(&self) -> Self
fn wtype() -> String
Implementors
impl<T: Float<T>> Weight for TropicalWeight<T>
impl<T: Float<T>> Weight for LogWeight<T>
impl<T: Float<T>> Weight for MinmaxWeight<T>