Esempio n. 1
0
 def __call__(self, x):
     """Return membership of x in this fuzzy set.
        This method makes the set work like a function.
        
        @param x: value for which the membership is to calculate
        @type x: float
        @return: membership
        @rtype: float
        """
     return 1.0 - SFunction.__call__(self, x)
Esempio n. 2
0
 def __call__(self,x):
     """Return membership of x in this fuzzy set.
        This method makes the set work like a function.
        
        @param x: value for which the membership is to calculate
        @type x: float
        @return: membership
        @rtype: float
        """
     return 1.0 - SFunction.__call__(self,x)