Package fuzzy :: Package defuzzify :: Module COGS :: Class COGS
[hide private]
[frames] | no frames]

Class COGS

source code


Defuzzification for singletons.

Instance Methods [hide private]
 
__init__(self, INF=None, ACC=None, failsafe=None, *args, **keywords)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getValue(self, variable)
Defuzzification using center of gravity method.
source code
 
_repr_params(self, params)
Helper for representation of instance.
source code

Inherited from Base.Base: __repr__, accumulate, value_table

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Base.Base (private): _ACC, _INF

Instance Variables [hide private]

Inherited from Base.Base: ACC, INF, accumulated_set, activated_sets

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, INF=None, ACC=None, failsafe=None, *args, **keywords)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • failsafe - if is not possible to calculate a center of gravity, return this value if not None or forward the exception
Overrides: object.__init__

getValue(self, variable)

source code 

Defuzzification using center of gravity method.

Overrides: Base.Base.getValue

_repr_params(self, params)

source code 

Helper for representation of instance.

Add all own params to given list in params.

Overrides: Base.Base._repr_params