Class ZShape

  • All Implemented Interfaces:
    FuzzySet, XMLSerializer

    public class ZShape
    extends TwoParameterSet
    Fuzzy set representing a Z-shape function. This function will equal 1 for any value to the left of a, and 0 for any value to the right of b. This function is a mirror of the S-shape.
    • Constructor Summary

      Constructors 
      Constructor Description
      ZShape​(double a, double b)
      Constructor.
      ZShape​(org.w3c.dom.Node xmlNode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double eval​(double x)
      Evaluate the membership of the set with the especified value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZShape

        public ZShape​(org.w3c.dom.Node xmlNode)
      • ZShape

        public ZShape​(double a,
                      double b)
        Constructor.
        Parameters:
        a - Left value of the Z-shape.
        b - Right value of the Z-shape.
    • Method Detail

      • eval

        public double eval​(double x)
        Description copied from interface: FuzzySet
        Evaluate the membership of the set with the especified value.
        Parameters:
        x - Value to evaluate.
        Returns:
        The membership value for the input.