public void Bell_InvalidInput() { //Arrange //Act var membershipFunction = new BellMembershipFunction("test", 0, 50, 10); //Assert }
public void Bell_Fuzzify_Success(double a, double b, double c, double inputValue, double expectedResult) { //Arrange var membershipFunction = new BellMembershipFunction("test", a, b, c); //Act var result = membershipFunction.Fuzzify(inputValue); //Assert Assert.That(Math.Round(result, 3), Is.EqualTo(expectedResult)); }
public void Bell_Max_Success() { //Arrange var membershipFunction = new BellMembershipFunction("test", 10, 50, 20); //Act var result = membershipFunction.Max(); //Assert Assert.That(result, Is.EqualTo(200)); }
public void CoG_Defuzzify_Bell() { var memFunc = new BellMembershipFunction("mf", 15, 6, 50); CoG_Defuzzify(memFunc, 50); }