|
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.8.0
Syntax public float GetLabelMembership(
string labelName,
float value
)
Public Function GetLabelMembership (
labelName As String,
value As Single
) As Single
Request Example
View SourceParameters
- 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:
SingleDegree of membership [0..1] of the value to the label (fuzzy set).
Exceptions Exception | Condition |
---|
KeyNotFoundException | The label indicated in labelName was not found in the linguistic variable. |
See Also