Adds a linguistic label to the variable.

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

Syntax

C#
public void AddLabel(
	FuzzySet label
)

Parameters

label
Type: AForge.Fuzzy..::.FuzzySet
A FuzzySet that will be a linguistic label of the linguistic variable.

Remarks

Linguistic labels are fuzzy sets (FuzzySet). Each label of the variable must have a unique name. The range of the label (left and right limits) cannot be greater than the linguistic variable range (start/end).

Exceptions

ExceptionCondition
System..::.NullReferenceExceptionThe fuzzy set was not initialized.
System..::.ArgumentExceptionThe linguistic label name already exists in the linguistic variable.
System..::.ArgumentExceptionThe left limit of the fuzzy set can not be lower than the linguistic variable's starting point.
System..::.ArgumentException"The right limit of the fuzzy set can not be greater than the linguistic variable's ending point."

See Also