tnorms 0.1.0

T-norm and t-conorm families
Documentation
  • Coverage
  • 100%
    18 out of 18 items documented0 out of 5 items with examples
  • Size
  • Source code size: 17.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 374.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • arclabs561/tnorms
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • arclabs561

tnorms

crates.io Documentation CI

T-norm and t-conorm families.

tnorms provides common fuzzy-logic aggregation families and fold helpers for multi-way conjunction and disjunction over values in [0, 1].

Dual-licensed under MIT or Apache-2.0.

crates.io | docs.rs

[dependencies]
tnorms = "0.1.0"
use tnorms::{tconorm, tnorm, Family};

let or_degree = tconorm(Family::Probabilistic, 0.5, 0.6);
let and_degree = tnorm(Family::Probabilistic, 0.5, 0.6);

assert!((or_degree - 0.8).abs() < 1e-12);
assert!((and_degree - 0.3).abs() < 1e-12);

Families

Family T-conorm behavior
Maximum Hard OR
Probabilistic Probabilistic sum
Bounded Lukasiewicz bounded sum
Einstein Smooth rational OR
Hamacher Aggressive rational OR
Yager Lp-style family
Frank Interpolating family
Dombi Power-based family