Package fuzzy :: Package set :: Module Function
[hide private]
[frames] | no frames]

Source Code for Module fuzzy.set.Function

 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   
19  """Base class for any fuzzy set defined by a function (not a polygon).""" 
20   
21  __revision__ = "$Id: Function.py,v 1.13 2010-03-28 18:44:46 rliebscher Exp $" 
22   
23   
24  from fuzzy.set.Set import Set 
25   
26 -class Function(Set):
27 """Base class for any fuzzy set defined by a function (not a polygon).""" 28 29 # if converted in linear polygon form use 30 # at least x pieces 31 _resolution = 25 #: segments when converting into a polygon
32