Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Type-1 fuzzy sets, with associated membership function and domain. Use smart constructors to create.
Num (T1Set a) | |
FSet (T1Set a) | Type-1 fuzzy sets are the most basic fuzzy set. |
Fuzzy (T1Set a) | Fuzzy operators are supported on T1Sets. Applies operator to membership functions inside T1Set type. |
Defuzzifier (T1Set Double) | |
FRule (T1Set a) | Simple type-1 fuzzy rule systems. |
type Value (T1Set a) = a | |
type Support (T1Set a) = [a] | |
type Returned (T1Set a) = Double | |
type Result (T1Set Double) = Double | |
type Antecedent (T1Set a) = Double |
Standard operations on fuzzy sets. Instantiated for each kind of fuzzy set. If you want to overload with a t-norm, instantiate against a newtype or instantiated set.
(?&&) :: a -> a -> a infixr 3 Source
Union over fuzzy values.
(?||) :: a -> a -> a infixr 2 Source
Intersection over fuzzy values.
Fuzzy complement.
Fuzzy Double | Standard definitions for operations as defined by Zadeh (1965) |
Fuzzy (MF a) | |
Fuzzy (T1Set a) | Fuzzy operators are supported on T1Sets. Applies operator to membership functions inside T1Set type. |
Fuzzy (IT2Set a) | Interval Type-2 fuzzy sets allow us to work in type-1 concepts. Operators are defined through application to lower and upper membership functions. |
Fuzzy (T2ZSet a) | Operations on zSlices fuzzy sets are simply defined as higher order funcitons over the list of zSlices. |
Fuzzy b => Fuzzy (a -> b) | Fuzzy operators for membership functions. |
(Fuzzy a, Fuzzy b) => Fuzzy (a, b) | Instance for tuple needed for interval type-2 fuzzy sets. |
Specifically for fuzzy sets, as opposed to fuzzy values.
Support is all elements of domain for which membership is non-zero.
Hedge is a modifier of fuzzy sets.
is
is for application of a value to a fuzzy set.
A single value of the domain.
A list of values from the domain for which membership is non-zero.
Degree of membership from applying a value to membership function.
contT1 :: (Num a, Enum a) => a -> a -> a -> MF a -> T1Set a Source
Smart constructor for continuous membership functions. Warning, fine resolutions will make this a very slow construction.
discT1 :: [a] -> MF a -> T1Set a Source
Smart constructor for discrete continuous membership functions. Avoid large domains.
unsafeMkT1 :: [a] -> MF a -> T1Set a Source
Only use this if you're sure your membership functions are safe, or your domain is huge.