Class PIShape

  • All Implemented Interfaces:
    FuzzySet, XMLSerializer

    public class PIShape
    extends TwoParameterSet
    Fuzzy set representing a Pi-shaped function. This function behaves as a S-shape for any value to the left of a. And behaves as a Z-shape to any value to the right of a (including a).
    • Constructor Summary

      Constructor Description
      PIShape​(double a, double b)
      PIShape​(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

      • PIShape

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

        public PIShape​(double a,
                       double b)
        a - Center point of the Pi-shape.
        b - Offset relative to the center of the Pi-shape.
    • Method Detail

      • eval

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