Package libai.fuzzy

Class FuzzyTerm

    • Constructor Summary

      Constructors 
      Constructor Description
      FuzzyTerm​(FuzzySet set, java.lang.String name)  
      FuzzyTerm​(FuzzySet set, java.lang.String name, boolean complement)  
      FuzzyTerm​(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.
      java.lang.String getName()  
      void load​(org.w3c.dom.Node xmlNode)
      Initializes the instance with the xml node information.
      java.lang.String toXMLString​(java.lang.String indent)
      Returns the XML representation of this Fuzzy set according with the FML schema definition.
      • Methods inherited from class java.lang.Object

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

      • FuzzyTerm

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

        public FuzzyTerm​(FuzzySet set,
                         java.lang.String name)
      • FuzzyTerm

        public FuzzyTerm​(FuzzySet set,
                         java.lang.String name,
                         boolean complement)
    • Method Detail

      • eval

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

        public java.lang.String toXMLString​(java.lang.String indent)
        Description copied from interface: XMLSerializer
        Returns the XML representation of this Fuzzy set according with the FML schema definition.
        Specified by:
        toXMLString in interface XMLSerializer
        Returns:
        XML representation of this Fuzzy Set.
      • load

        public void load​(org.w3c.dom.Node xmlNode)
        Description copied from interface: XMLSerializer
        Initializes the instance with the xml node information.
        Specified by:
        load in interface XMLSerializer
        Parameters:
        xmlNode - XML node with the information to load the current object with.
      • getName

        public java.lang.String getName()