public float Evaluate(FuzzyValueSet set) { var val = MathFz.Clamp01(this.Expression.Evaluate(set)); val = (float)Math.Sqrt(val); return(val); }
public float Evaluate(FuzzyValueSet set) { var val = MathFz.Clamp01(this.Expression.Evaluate(set)); float ret = 1.0f - val; return(ret); }
public float Evaluate(FuzzyValueSet set) { var valA = this.OperandA.Evaluate(set); var valB = this.OperandB.Evaluate(set); return(MathFz.Clamp01(Math.Max(valA, valB))); }
public float Evaluate(FuzzyValueSet set) { var fuzzyVar = set.Get(this.LinguisticVariable); return(MathFz.Clamp01(fuzzyVar.membershipDegree)); }