Class FuzzySet<T>

java.lang.Object
org.episteme.core.mathematics.logic.fuzzy.FuzzySet<T>

public class FuzzySet<T> extends Object
Represents a fuzzy set.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • FuzzySet

      public FuzzySet(MembershipFunction<T> function)
      Creates a new fuzzy set with the given membership function.
      Parameters:
      function - the membership function
  • Method Details

    • membership

      public double membership(T element)
      Returns the degree of membership of an element in this set.
      Parameters:
      element - the element
      Returns:
      membership degree [0, 1]
    • complement

      public FuzzySet<T> complement()
      Returns the complement of this fuzzy set.
      Returns:
      the complement set
    • union

      public FuzzySet<T> union(FuzzySet<T> other)
      Returns the union of this set and another (max).
      Parameters:
      other - the other set
      Returns:
      the union set
    • intersection

      public FuzzySet<T> intersection(FuzzySet<T> other)
      Returns the intersection of this set and another (min).
      Parameters:
      other - the other set
      Returns:
      the intersection set