C# Класс Accord.Fuzzy.ProductNorm

Product Norm, used to calculate the linguistic value of a AND operation.

The product Norm uses a multiplication operator to compute the AND among two fuzzy memberships.

Sample usage:

// creating 2 fuzzy sets to represent Cool (Temperature) and Near (Distance) TrapezoidalFunction function1 = new TrapezoidalFunction( 13, 18, 23, 28 ); FuzzySet fsCool = new FuzzySet( "Cool", function1 ); TrapezoidalFunction function2 = new TrapezoidalFunction( 23, 28, 33, 38 ); FuzzySet fsNear = new FuzzySet( "Near", function2 ); // getting memberships float m1 = fsCool.GetMembership( 15 ); float m2 = fsNear.GetMembership( 35 ); // computing the membership of "Cool AND Near" ProductNorm AND = new ProductNorm( ); float result = AND.Evaluate( m1, m2 ); // show result Console.WriteLine( result );
Наследование: INorm
Показать файл Открыть проект

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

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

Calculates the numerical result of the AND operation applied to two fuzzy membership values using the product rule.

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

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

Calculates the numerical result of the AND operation applied to two fuzzy membership values using the product rule.
public Evaluate ( float membershipA, float membershipB ) : float
membershipA float A fuzzy membership value, [0..1].
membershipB float A fuzzy membership value, [0..1].
Результат float