pub enum Ops {
MinMax,
Product,
Lukasiewicz,
}Expand description
Built-in operator families providing AND/OR/NOT over degrees.
Variants§
MinMax
Min–Max family
- T:
min(a, b) - S:
max(a, b) - C:
1 - a
Product
Product family
- T:
a * b - S:
a + b - a * b(not algebraic sum; may exceed 1.0) - C:
1 - a
Lukasiewicz
Łukasiewicz family
- T:
max(0, a + b - 1) - S:
min(1, a + b) - C:
1 - a
Trait Implementations§
Source§impl FuzzyOps for Ops
Available on crate feature ops-dyn only.Implements FuzzyOps for each Ops variant using the formulas above.
impl FuzzyOps for Ops
Available on crate feature
ops-dyn only.Implements FuzzyOps for each Ops variant using the formulas above.
impl Copy for Ops
Auto Trait Implementations§
impl Freeze for Ops
impl RefUnwindSafe for Ops
impl Send for Ops
impl Sync for Ops
impl Unpin for Ops
impl UnwindSafe for Ops
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