pub struct Product;Expand description
Product (Goguen) algebra: the product t-norm a · b, with the probabilistic
sum as its t-conorm. Negation is crisp.
Best for chains — multiplying degrees through hops propagates magnitude, distinguishing a long confident path from a short weak one.
Trait Implementations§
impl Copy for Product
Source§impl Truth for Product
impl Truth for Product
Source§fn and(a: f32, b: f32) -> f32
fn and(a: f32, b: f32) -> f32
Conjunction
a ⊗ b (the t-norm). Used for AND and for combining a hop’s
premise with its projected scores.Source§fn or(a: f32, b: f32) -> f32
fn or(a: f32, b: f32) -> f32
Disjunction
a ⊕ b (the t-conorm), the algebra’s standard dual of ⊗.
Used for OR.Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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