Trait FuzzyOps
Source pub trait FuzzyOps {
// Required methods
fn t(&self, a: Float, b: Float) -> Float;
fn s(&self, a: Float, b: Float) -> Float;
fn c(&self, a: Float) -> Float;
}
Expand description
Common interface for fuzzy logic operators (T-norm, S-norm, complement).
T-norm (logical AND) combining two degrees in [0, 1].
S-norm (logical OR) combining two degrees in [0, 1].
Complement (logical NOT) of a degree in [0, 1].
Source§Available on crate feature ops-dyn only.
Implements FuzzyOps for each Ops variant using the formulas above.