1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 """
19 Calculate value for fuzzy rule.
20
21 Used to build fuzzy rules.
22 """
23
24 __revision__ = "$Id: Operator.py,v 1.15 2010-10-29 19:24:41 rliebscher Exp $"
25
27 """Abstract base class for any kind of operator."""
28
30 """Dummy initialization, so it is safe to call it
31 from any sub class."""
32 pass
33
35 """Return current value.
36
37 @return: result of operator calculation
38 @rtype: float
39 @raise fuzzy.FuzzyException.FuzzyException: any problem in calculation
40 """
41 raise NotImplementedError("abstract class %s can't be called" % self.__class__.__name__)
42