| |
- __builtin__.object
-
- Norm
- fuzzy.Exception.FuzzyException(exceptions.Exception)
-
- NormException
class Norm(__builtin__.object) |
|
Abstract Base class of any fuzzy norm |
|
Methods defined here:
- __call__(self, *args)
- Calculate result of norm(arg1,arg2,...)
@param args: list of floats as arguments for norm.
@type args: list of float
@return: result of norm calulation
@rtype: float
@raise NormException: any problem in calculation (wrong number of arguments, numerical problems)
- __init__(self, type=0)
- Initialize type of norm
- __repr__(self)
- Return representation of instance.
@return: representation of instance
@rtype: string
- checkArgs2(self, args)
- Checks args to be 2 float values.
@param args: list of arguments
@type args: list of float?
@return: first two args as float values
@rtype: (float,float)
- checkArgsN(self, args)
- Checks args to be at least 2 float values.
@param args: list of arguments
@type args: list of float?
@return: arguments as float values
@rtype: list of float
- getType(self)
- Return type of norm:
0 = not defined or not classified
1 = t-norm ( = Norm.T_NORM)
2 = s-norm ( = Norm.S_NORM)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- S_NORM = 2
- T_NORM = 1
- UNKNOWN = 0
|
|