Interface MembershipFunction<T>

All Superinterfaces:
Function<T,Double>
All Known Implementing Classes:
TriangularMembershipFunction

public interface MembershipFunction<T> extends Function<T,Double>

Abstraction for fuzzy membership functions.

Version:
0.0.1
Author:
Levent Bayindir
  • Field Details

    • TYPE_TRIANGULAR

      static final int TYPE_TRIANGULAR
      Triangular shape type
      See Also:
  • Method Details

    • fuzzify

      double fuzzify(T input)
      Returns the membership value (0.0 to 1.0) for the given input.
      Parameters:
      input - the element to test.
      Returns:
      the membership degree.
    • apply

      default Double apply(T input)
      Specified by:
      apply in interface Function<T,Double>
    • getName

      default String getName()
      Returns the name of this membership function.
      Returns:
      name
    • getType

      default int getType()
      Returns the type constant.
      Returns:
      type id
    • getTypicalValue

      default double getTypicalValue()
      Returns the typical value (center) of the set.
    • setDeFuzzificationInputValue

      default void setDeFuzzificationInputValue(double inputValue)
    • getDeFuzzificationInputValue

      default double getDeFuzzificationInputValue()