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)); }
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)); }
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)); }