public void T6RuleApply() { testRule = LinguisticRule.fromJson(TestJsonRule); MFSetup(); testRule.Apply(TestLingVars); Debug.Log("[Rule Application Test Resut] : " + testRule.membershipValue.fuzzy); }
public void T7Implication() { testRule = LinguisticRule.fromJson(TestJsonRule); MFSetup(); testRule.Apply(TestLingVars); Debug.Log("[Implication Result at Index " + testNVal + "] : " + testRule.Implication(testNVal, testMF)); }
public void T8Implicate() { testRule = LinguisticRule.fromJson(TestJsonRule); MFSetup(); testRule.Apply(TestLingVars); testRule.Implicate(testMF, 1); string LogMsg = "[Implicate Test Result]\n"; for (int i = 0; i < testRule.implData.data.Count; i++) { LogMsg += "Index " + (testRule.implData.StartAxis + testRule.implData.spacing * i) + " -> " + testRule.implData.data[i] + "\n"; } Debug.Log(LogMsg); }