home › Forums › # Technical Support › Migration to jfuzzylite › Reply To: Migration to jfuzzylite
November 18, 2018 at 09:52
#6264
Keymaster
Hi Andrey,
thanks for your post and for using jfuzzylite.
Could you please post the FLL code?
As for the previous question, glad you found the mistake. The FCL engine you posted, the equivalent in FLL is:
Engine: proximity
InputVariable: signal
enabled: true
range: 30.000 120.000
lock-range: false
term: strong Discrete 0.000 1.000 30.000 1.000 65.000 0.000
term: decent Discrete 25.000 0.000 60.000 1.000 90.000 0.000
term: weak Discrete 80.000 0.000 120.000 1.000
InputVariable: distance
enabled: true
range: 0.000 200.000
lock-range: false
term: low Discrete 0.000 1.000 20.000 0.000
term: medium Discrete 15.000 0.000 30.000 1.000 70.000 0.000
term: high Discrete 60.000 0.000 200.000 1.000
OutputVariable: proximity
enabled: true
range: 0.000 100.000
lock-range: false
aggregation: Maximum
defuzzifier: Centroid 100
default: 0.000
lock-previous: false
term: immediate Discrete 0.000 1.000 30.000 0.000
term: near Discrete 20.000 0.000 40.000 1.000 80.000 0.000
term: far Discrete 70.000 0.000 100.000 1.000
RuleBlock: first
enabled: true
conjunction: Minimum
disjunction: none
implication: Minimum
activation: General
rule: if signal is strong and distance is low then proximity is immediate
rule: if signal is strong and distance is medium then proximity is immediate
rule: if signal is strong and distance is high then proximity is immediate
rule: if signal is decent and distance is low then proximity is immediate
rule: if signal is decent and distance is medium then proximity is near
rule: if signal is decent and distance is high then proximity is near
rule: if signal is weak and distance is low then proximity is immediate
rule: if signal is weak and distance is medium then proximity is near
rule: if signal is weak and distance is high then proximity is far