Click or drag to resize
Accord.NET (logo)

LinguisticVariableGetLabelMembership Method

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:  Accord.Fuzzy
Assembly:  Accord.Fuzzy (in Accord.Fuzzy.dll) Version: 3.6.0
Syntax
public float GetLabelMembership(
	string labelName,
	float value
)
Request Example View Source

Parameters

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

Return Value

Type: Single
Degree of membership [0..1] of the value to the label (fuzzy set).
Exceptions
ExceptionCondition
KeyNotFoundExceptionThe label indicated in labelName was not found in the linguistic variable.
See Also