Package svs_simulation :: Package ai_lib :: Module fuzzy
[show private | hide private]
[frames | no frames]

Module svs_simulation.ai_lib.fuzzy

Implementation of fuzzy logic system.

The evaluation method of the FuzzyVariable is based on the Seguno method. This requires that each subset be represented as a 'fuzzy singleton' (ie a single value rather than a range). When subsets are created, a segunoSingleton property is created for it based on the centroid of the fitness vector.

Author: Simon Yuill

Contact: simon@lipparosa.org

Copyright: 2005 Simon Yuill

License: GNU GPL version 2 or any later version

Classes
FuzzyAND Performs fuzzy AND operation on member terms.
FuzzyEvaluator Collects a set of rules and handles their evaluation of input.
FuzzyNOT Performs fuzzy NOT operation on member terms.
FuzzyOR Performs fuzzy OR operation on member terms.
FuzzyRule Respresents and evaluates a single fuzzy rule.
FuzzySet A set contained within a fuzzy linguistic variable.
FuzzyTerm Base class from which fuzzy sets and operators are derived.
FuzzyVariable Encapsulation of a fuzzy super set.
SimpleFuzzyEvaluator The SimpleFuzzyEvaluator patches two fuzzy sets together and evaluates their input.

Exceptions
FuzzyException  

Function Summary
  buildLookupForSet(fuzzySet)
Creates a lookup table for a set.
  centroid(fuzzySet)
Finds the centre ofgravity for the set.
  mapIndices(itemA, itemB, fuzzySet)
Maps the values between two items into the specified set according.
  nearestIndex(testIndex, indices)
Finds nearest match for an index within a range of indices.
  parseFitVectorString(fvStr)
Converts a formatted string into a fitvector.
  positionOf(index, indices)
Returns position of index value in indices.

Variable Summary
Constants logic_const = <svs_core.utilities.lib.Constants instance...

Function Details

buildLookupForSet(fuzzySet)

Creates a lookup table for a set.
Parameters:
fuzzySet - set to build lookup table for
           (type=FuzzySet)

centroid(fuzzySet)

Finds the centre ofgravity for the set.
Parameters:
fuzzySet - set to build lookup table for
           (type=FuzzySet)

mapIndices(itemA, itemB, fuzzySet)

Maps the values between two items into the specified set according.
Parameters:
itemA - first item
           (type=tuple)
itemB - second item
           (type=tuple)
fuzzySet - set to map to
           (type=FuzzySet)

nearestIndex(testIndex, indices)

Finds nearest match for an index within a range of indices.
Parameters:
testIndex - index number to match
           (type=integer)
indices - list to match to
           (type=list)

parseFitVectorString(fvStr)

Converts a formatted string into a fitvector.

The string should be in the form:
        
        C{<index>:<membership>, <index>:<membership>, etc}
        
where each entry is separated by a comma, and the 
index point and membership value are separated by
a colon.

positionOf(index, indices)

Returns position of index value in indices.

Variable Details

logic_const

Type:
Constants
Value:
<svs_core.utilities.lib.Constants instance at 0x3080dcd8>              

Generated by Epydoc 2.1 on Thu Oct 20 15:30:30 2005 http://epydoc.sf.net