Exemplo n.º 1
0
        public float IS(Function function)
        {
            if (!Functions.Contains(function))
            {
                throw new System.Exception("@Fuzzy Exception - Function not found or no function assigned");
            }

            return(function.Evaluate(_value));
        }
Exemplo n.º 2
0
        public float IS(string concept)
        {
            Function f = GetFunction(concept);

            if (!f)
            {
                throw new System.Exception("@Fuzzy Exception - Function not found or no function assigned");
            }

            return(f.Evaluate(_value));
        }
Exemplo n.º 3
0
        public float Fuzzyfication(float val, string funcName)
        {
            Function func = GetFunction(funcName);

            if (!func)
            {
                throw new System.Exception("@Fuzzy Exception - Function not found");
            }

            return(func.Evaluate(val));
        }