Exemplo n.º 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));
        }
Exemplo n.º 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));
        }