UnityAI.Core.Fuzzy.ContinuousFuzzyRuleVariable.SetFuzzyValue C# (CSharp) Method

SetFuzzyValue() private method

Set the Truth Value
private SetFuzzyValue ( FuzzySet newSet, double truthValue ) : void
newSet FuzzySet
truthValue double
return void
        internal virtual void SetFuzzyValue(FuzzySet newSet, double truthValue)
        {
            //This is correlation with a truth value.
            //Change the Fuzzy Work Space 'valFzy' with the new set
            //correlated to truth value 'truthValue'
            moValFzyTmp.CorrelateWith(newSet, moRuleBase.CorrelationMethod, truthValue);
            moValFzy.ImplicateTo(moValFzyTmp, moRuleBase.InferenceMethod);

            //When all done, defuzzify the work space and store in valCrisp
            mdValCrisp = moValFzy.Defuzzify(moRuleBase.DefuzzifyMethod);
        }

Same methods

ContinuousFuzzyRuleVariable::SetFuzzyValue ( FuzzySet newValue ) : void