Home | Trees | Indices | Help |
|
---|
|
Helper functions for calculation with fuzzy sets. Examples can be found here U{http://pyfuzzy.sourceforge.net/demo/merge/} * Intersection of set1 and set2 can be done by C{set = merge(T_NORM,set1,set2)} where T_NORM is a t-norm eg. Min. (or a function which accepts two parameters as min().) * Union of set1 and set2 can be done by C{set = merge(S_NORM,set1,set2)} where S_NORM is a s-norm eg. Max. (or a function which accepts two parameters as max().) * Complement of set1 can be done by C{set = norm(lambda a,b:1.0-a ,set1,0.0)} using a user defined function for it. (The second parameter is ignored or better said it doesn't influence the value, it only influences maybe where the points of the resulting polygon are set.) * Activation function can be done by C{set = norm(act_norm,set,act_value)} where act_norm is any L{fuzzy.norm} or two params function (eg. min) and act_value is the result of a rule calculation.
|
|||
float |
|
||
float |
|
||
float |
|
||
|
|||
fuzzy.set.Polygon.Polygon |
|
||
fuzzy.set.Polygon.Polygon |
|
||
fuzzy.set.Polygon.Polygon |
|
||
|
|||
fuzzy.set.Polygon.Polygon |
|
||
fuzzy.set.Polygon.Polygon |
|
||
fuzzy.set.Polygon.Polygon |
|
|
|||
__revision__ =
|
|||
__package__ =
|
|
Find root of function f between x1,x2 by using the regula falsi method with the pegasus modification. See also http://de.wikipedia.org/wiki/Regula_Falsi. (The english version lacks the description of pegasus modification.) The algorithm stops if the error estimation is smaller than epsilon or there is an ZeroDivisionError, which means both values f1 and f2 are identical (should be 0 then).
|
Find root x1,x2 by using interpolation.
|
Find intersection of two linear functions fa/fb between x1,x2 with values there fa1/fb1 and fa2/fb2.
|
Returns a new fuzzy set which is the merger of set1 and set2, where
the membership of the result set is equal to
|
Returns a new fuzzy set which is the merger of set1 and set2, where
the membership of the result set is equal to
|
Returns a new fuzzy set which is the merger of set1 and set2, where
the membership of the result set is equal to
For nonlinear operations you might want set the segment size to a value which controls how large a linear segment of the result can be. See also the following examples:
|
Returns a new fuzzy set which is this set normed with value. where the
membership of the result set is equal to
|
Returns a new fuzzy set which ist this set normed with value. where
the membership of the result set is equal to
For meaning of segment_size see also fuzzy.set.operations.merge.
|
Returns a new fuzzy set which is this complement of the given set.
(Where the membership of the result set is equal to
|
Returns a new fuzzy set which is this complement of the given set.
(Where the membership of the result set is equal to
For meaning of segment_size see also fuzzy.set.operations.merge.
|
|
__revision__
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Apr 5 22:26:05 2013 | http://epydoc.sourceforge.net |