C# Класс AForge.Fuzzy.SingletonFunction

Membership function used in fuzzy singletons: fuzzy sets that have just one point with membership value 1.

Sometimes it is needed to represent crisp (classical) number in the fuzzy domain. Several approaches can be used, like adding some uncertain (fuzziness) in the original number (the number one, for instance, can be seen as a TrapezoidalFunction with -0.5, 1.0 and 0.5 parameters). Another approach is to declare fuzzy singletons: fuzzy sets with only one point returning a none zero membership.

While trapezoidal and half trapezoidal are classic functions used in fuzzy functions, this class supports any function or approximation that can be represented as a sequence of lines.

Sample usage:

// creating the instance SingletonFunction membershipFunction = new SingletonFunction( 10 ); // getting membership for several points for ( int i = 0; i < 20; i++ ) Console.WriteLine( membershipFunction.GetMembership( i ) );
Наследование: IMembershipFunction
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
support float

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

Метод Описание
GetMembership ( float x ) : float

Calculate membership of a given value to the singleton function.

SingletonFunction ( float support ) : System

Initializes a new instance of the SingletonFunction class.

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

GetMembership() публичный метод

Calculate membership of a given value to the singleton function.
public GetMembership ( float x ) : float
x float Value which membership will to be calculated.
Результат float

SingletonFunction() публичный метод

Initializes a new instance of the SingletonFunction class.
public SingletonFunction ( float support ) : System
support float Support is the only value of x where the membership function is 1.
Результат System

Описание свойств

support защищенное свойство

The unique point where the membership value is 1.
protected float support
Результат float