We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e698d77 commit bc10d4aCopy full SHA for bc10d4a
pyit2fls/FML.py
@@ -1,10 +1,19 @@
1
import xml.etree.ElementTree as ET
2
+from pyit2fls import (T1Mamdani, T1TSK, )
3
4
class FML:
5
6
def __init__(self, ):
7
pass
8
9
+ def generate(self, variables, rules):
10
+ if rules["type"] == "mamdani":
11
+ sys = T1Mamdani()
12
+ elif rules["type"] == "takagi-sugeno":
13
+ sys = T1TSK()
14
+ else:
15
+ raise ValueError(f"Unknown system type: {rules["type"]}")
16
+
17
def parse_fml(self, fml_xml_string):
18
"""
19
Parses FML XML and populates FuzzyVariable and FuzzySet objects.
0 commit comments