Fuzzy
This module contains bunch of factory methods for Fuzzy type
Functions and values
Function or value | Description |
alpha total level
Signature:total:int -> level:int -> decimal<1>
|
Converts number of the level in \(\alpha\)-cut array to the value of membership function \(\mu\) |
binary f a b
Signature:f:(Interval * Interval -> decimal) -> a:Fuzzy -> b:Fuzzy -> decimal
|
Binary function for defuzzification of the result of operation Important! |
distance a b
Signature:a:Fuzzy -> b:Fuzzy -> decimal
|
Calculates distance between two fuzzy sets |
interval (a, b, c, d)
Signature:(a:decimal * b:decimal * c:decimal * d:decimal) -> Fuzzy
|
Creates trapezoid with 11 \(\alpha\)-cuts which gives increment of 0.1 in \(\mu\) from one \(\alpha\)-cut to the next |
number (a, b, c)
Signature:(a:decimal * b:decimal * c:decimal) -> Fuzzy
|
Creates triangular fuzzy set with bottom \(\alpha\)-cut |
plot a
Signature:a:Fuzzy -> (decimal * decimal<1>) []
|
Represents fuzzy set |
point a
Signature:a:decimal -> Fuzzy
|
Creates fuzzy representation of zero-length interval |
risk a
Signature:a:Fuzzy -> decimal
|
Calculates weighted risk of fuzzy set |
trapezoid levels (a, b, c, d)
Signature:levels:int -> (a:decimal * b:decimal * c:decimal * d:decimal) -> Fuzzy
|
Creates trapezoid fuzzy set with bottom \(\alpha\)-cut |
unary f a
Signature:f:(Interval -> decimal) -> a:Fuzzy -> decimal
|
Unary function for defuzzification of the result of operation |
width a
Signature:a:Fuzzy -> decimal
|
Calculates weighted width of fuzzy set |