FuzzyOps

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).

Required Methods§

Source

fn t(&self, a: Float, b: Float) -> Float

T-norm (logical AND) combining two degrees in [0, 1].

Source

fn s(&self, a: Float, b: Float) -> Float

S-norm (logical OR) combining two degrees in [0, 1].

Source

fn c(&self, a: Float) -> Float

Complement (logical NOT) of a degree in [0, 1].

Implementors§

Source§

impl FuzzyOps for Ops

Available on crate feature ops-dyn only.

Implements FuzzyOps for each Ops variant using the formulas above.