Calculate the membership of a given value to a given label. Used to evaluate linguistics clauses like "X IS A", where X is a value and A is a linguistic label.

Namespace:  AForge.Fuzzy
Assembly:  AForge.Fuzzy (in AForge.Fuzzy.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public float GetLabelMembership(
	string labelName,
	float value
)

Parameters

labelName
Type: System..::.String
Label (fuzzy set) to evaluate value's membership.
value
Type: System..::.Single
Value which label's membership will to be calculated.

Return Value

Degree of membership [0..1] of the value to the label (fuzzy set).

Exceptions

ExceptionCondition
System.Collections.Generic..::.KeyNotFoundExceptionThe label indicated in labelName was not found in the linguistic variable.

See Also