Package pyrobot :: Package brain :: Module fuzzy :: Class FuzzyValue
[frames | no frames]

Class FuzzyValue


Fuzzy value class

Contains a floating-point value between 0 and 1

Method Summary
  __init__(self, val, ops)
Initialize the fuzzy value...
  __add__(self, other)
  __and__(self, other)
Return the intersection of self and other...
  __cmp__(self, other)
  __div__(self, other)
  __float__(self)
  __invert__(self)
Return the complement of self...
  __mul__(self, other)
  __neg__(self)
Return the complement of self...
  __or__(self, other)
Return the union of self and other...
  __radd__(self, other)
  __rdiv__(self, other)
  __rmul__(self, other)
  __rsub__(self, other)
  __str__(self)
  __sub__(self, other)
  defuzzify(self)

Method Details

__init__(self, val, ops=<pyrobot.brain.fuzzy.StandardFuzzyOperators instance at 0...)
(Constructor)

Initialize the fuzzy value

If val is less than zero or greater than one, limit val to those bounds

__and__(self, other)
(And operator)

Return the intersection of self and other

__invert__(self)

Return the complement of self

__neg__(self)

Return the complement of self

__or__(self, other)
(Or operator)

Return the union of self and other

Generated by Epydoc 2.1 on Mon Jul 25 01:39:27 2005 http://epydoc.sf.net