C# Class Accord.Fuzzy.NotOperator

NOT operator, used to calculate the complement of a fuzzy set.

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 );
Inheritance: IUnaryOperator
Exibir arquivo Open project: accord-net/framework

Public Methods

Method Description
Evaluate ( float membership ) : float

Calculates the numerical result of the NOT operation applied to a fuzzy membership value.

Method Details

Evaluate() public method

Calculates the numerical result of the NOT operation applied to a fuzzy membership value.
public Evaluate ( float membership ) : float
membership float A fuzzy membership value, [0..1].
return float