Package fuzzy :: Package operator
[hide private]
[frames] | no frames]

Source Code for Package fuzzy.operator

 1  # -*- coding: utf-8 -*- 
 2  # 
 3  # Copyright (C) 2009  Rene Liebscher 
 4  # 
 5  # This program is free software; you can redistribute it and/or modify it under 
 6  # the terms of the GNU Lesser General Public License as published by the Free  
 7  # Software Foundation; either version 3 of the License, or (at your option) any 
 8  # later version. 
 9  # 
10  # This program is distributed in the hope that it will be useful, but WITHOUT  
11  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
12  # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 
13  # details. 
14  #  
15  # You should have received a copy of the GNU Lesser General Public License 
16  # along with this program; if not, see <http://www.gnu.org/licenses/>.  
17  # 
18  """These operators are used to build fuzzy rules. 
19   
20  For example: 
21   
22  c{(A and B) or not C} 
23   
24  where 
25   
26   - A,B,C is an adjective of a fuzzy variable and 
27   - 'and'/'or' are fuzzy norms 
28   
29  can be modelled as:: 
30   
31   Compound(FuzzyOr(), 
32       Compound(FuzzyAnd(), 
33           Input(A), 
34           Input(B) 
35       ), 
36       Not( 
37           Input(C) 
38       ) 
39   ) 
40  """ 
41   
42  __revision__ = "$Id: __init__.py,v 1.6 2009-10-27 20:06:27 rliebscher Exp $" 
43