Package fuzz :: Module fnumber :: Class GaussianFuzzyNumber
[hide private]
[frames] | no frames]

Class GaussianFuzzyNumber

source code

 object --+    
          |    
FuzzyNumber --+
              |
             GaussianFuzzyNumber

Gaussian fuzzy number class.

Instance Methods [hide private]
 
__init__(self, mean, stddev)
Constructor.
source code
GaussianFuzzyNumber
__add__(self, other)
Addition operation.
source code
GaussianFuzzyNumber
__sub__(self, other)
Subtraction operation.
source code
 
mu(self, value)
Return the membership level of a value in the universal set domain of the fuzzy number.
source code
RealRange
alpha(self, alpha)
Alpha cut function.
source code
PolygonalFuzzyNumber
to_polygonal(self, np=20)
Convert this Gaussian fuzzy number into a polygonal fuzzy number (approximate).
source code

Inherited from FuzzyNumber: __and__, __iand__, __ior__, __or__, __repr__, __str__, intersection, normalize, union

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

Static Methods [hide private]

Inherited from FuzzyNumber (private): _binary_sanity_check

Class Variables [hide private]

Inherited from FuzzyNumber: height

Properties [hide private]
RealRange kernel
Return the kernel of the fuzzy number (range of values in the universal set where membership degree is equal to one).
RealRange support
Return the support of the fuzzy number (range of values in the universal set where membership degree is nonzero).

Inherited from object: __class__

Method Details [hide private]

__init__(self, mean, stddev)
(Constructor)

source code 

Constructor.

Parameters:
  • mean (float) - The mean (central value) of the Gaussian.
  • stddev (float) - The standard deviation of the Gaussian.
Overrides: object.__init__

__add__(self, other)
(Addition operator)

source code 

Addition operation.

Parameters:
Returns: GaussianFuzzyNumber
Sum of the gaussian fuzzy numbers.

__sub__(self, other)
(Subtraction operator)

source code 

Subtraction operation.

Parameters:
Returns: GaussianFuzzyNumber
Difference of the gaussian fuzzy numbers.

mu(self, value)

source code 

Return the membership level of a value in the universal set domain of the fuzzy number.

Parameters:
  • value (float) - A value in the universal set.
Overrides: FuzzyNumber.mu

alpha(self, alpha)

source code 

Alpha cut function. Returns the interval within the fuzzy number whose membership levels meet or exceed the alpha value.

Parameters:
  • alpha (float) - The alpha value for the cut in [0, 1].
Returns: RealRange
The alpha cut interval.

to_polygonal(self, np=20)

source code 

Convert this Gaussian fuzzy number into a polygonal fuzzy number (approximate).

Parameters:
  • np (int) - The number of points to interpolate per side (optional).
Returns: PolygonalFuzzyNumber
Result polygonal fuzzy number.
Overrides: FuzzyNumber.to_polygonal

Property Details [hide private]

kernel

Return the kernel of the fuzzy number (range of values in the universal set where membership degree is equal to one).

Get Method:
unreachable.kernel(self) - Return the kernel of the fuzzy number (range of values in the universal set where membership degree is equal to one).
Type:
RealRange

support

Return the support of the fuzzy number (range of values in the universal set where membership degree is nonzero).

Get Method:
unreachable.support(self) - Return the support of the fuzzy number (range of values in the universal set where membership degree is nonzero).
Type:
RealRange