NOT operator, used to calculate the complement of a fuzzy set.
Namespace:
AForge.FuzzyAssembly: AForge.Fuzzy (in AForge.Fuzzy.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
| C# |
|---|
public class NotOperator : IUnaryOperator |
Remarks
The NOT operator definition is (1 – m) for all the values of membership m of the fuzzy set.
Sample usage:
// creating a fuzzy sets to represent Cool (Temperature) TrapezoidalFunction function1 = new TrapezoidalFunction( 13, 18, 23, 28 ); FuzzySet fsCool = new FuzzySet( "Cool", function1 ); // getting membership float m1 = fsCool.GetMembership( 15 ); // computing the membership of "NOT Cool" NotOperator NOT = new NotOperator( ); float result = NOT.Evaluate( m1 ); // show result Console.WriteLine( result );