Ejemplo n.º 1
0
        public FuzzyObject <Enum> Factor <RT>(FuzzyObject <RT> fuzzyObject) where RT : Enum
        {
            if (_fuzzyLogic == null)
            {
                return(new FuzzyObject <Enum>());
            }
            double otherDegree  = fuzzyObject.Degree;
            double resultDegree = _fuzzyLogic.GetFactorDegree(Degree, otherDegree);

            return(new FuzzyObject <Enum>(Value, resultDegree, _fuzzyLogic));
        }
Ejemplo n.º 2
0
 public double GetAndDegree(FuzzyObject <Enum> objectA, FuzzyObject <Enum> objectB)
 {
     return(Math.Min(objectA.Degree, objectB.Degree));
 }