C# 클래스 Accord.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
파일 보기 프로젝트 열기: accord-net/framework

보호된 프로퍼티들

프로퍼티 타입 설명
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