AForge.Fuzzy.Clause.Clause C# (CSharp) Method

Clause() public method

Initializes a new instance of the Clause class.
The label indicated was not found in the linguistic variable.
public Clause ( LinguisticVariable variable, AForge.Fuzzy.FuzzySet label ) : System
variable LinguisticVariable Linguistic variable of the clause.
label AForge.Fuzzy.FuzzySet Label of the linguistic variable, a fuzzy set used as label into the linguistic variable.
return System
        public Clause( LinguisticVariable variable, FuzzySet label )
        {
            // check if label belongs to var.
            variable.GetLabel( label.Name );
            
            // initializing attributes
            this.label    = label;
            this.variable = variable;
        }