Example #1
0
        public FuzzyObject <Enum> And <RT>(FuzzyObject <RT> fuzzyObject) where RT : Enum
        {
            if (_fuzzyLogic == null)
            {
                return(new FuzzyObject <Enum>());
            }
            double otherDegree  = fuzzyObject.Degree;
            double resultDegree = _fuzzyLogic.GetAndDegree(Degree, otherDegree);

            return(new FuzzyObject <Enum>(Value, resultDegree, _fuzzyLogic));
        }
Example #2
0
        public FuzzyObject <Enum> And(Enum value)
        {
            if (_fuzzyLogic == null)
            {
                return(new FuzzyObject <Enum>());
            }
            double otherDegree = _fuzzyLogic.GetDegree(value);
            double andDegree   = _fuzzyLogic.GetAndDegree(Degree, otherDegree);

            return(new FuzzyObject <Enum>(Value, andDegree, _fuzzyLogic));
        }