C# Класс AForge.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 double m1 = fsCool.GetMembership( 15 ); // computing the membership of "NOT Cool" NotOperator NOT = new NotOperator( ); double result = NOT.Evaluate( m1 ); // show result Console.WriteLine( result );
Наследование: IUnaryOperator
Показать файл Открыть проект

Открытые методы

Метод Описание
Evaluate ( float membership ) : float

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

Описание методов

Evaluate() публичный Метод

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].
Результат float