Beispiel #1
0
 def test_Trimf2_membership_function(self):
     self.assertEqual(trimf.trimf(0, [3.0, 6.0, 8.0]), 0.0)
Beispiel #2
0
 def test_Trimf12_membership_function(self):
     self.assertRaises(TypeError,
                       lambda: trimf.trimf(0, [1, 2.5, 300, 900]))
Beispiel #3
0
 def test_Trimf9_membership_function(self):
     self.assertRaises(TypeError, lambda: trimf.trimf(0, [1]))
Beispiel #4
0
 def test_Trimf7_membership_function(self):
     self.assertEqual(trimf.trimf(1001, [3.0, 5.0, 1000.0]), 0)
Beispiel #5
0
 def test_Trimf6_membership_function(self):
     self.assertEqual(trimf.trimf(6, [3.0, 6.0, 8.0]), 1)
Beispiel #6
0
 def test_Trimf5_membership_function(self):
     self.assertEqual(trimf.trimf(2, [3.0, 6.0, 100.0]), 0.0)