Adds a linguistic label to the variable.
Namespace:
AForge.FuzzyAssembly: 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
| Exception | Condition |
|---|---|
| System..::.NullReferenceException | The fuzzy set was not initialized. |
| System..::.ArgumentException | The linguistic label name already exists in the linguistic variable. |
| System..::.ArgumentException | The 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.” |