home › Forums › # Technical Support › Help to resolve error › Reply To: Help to resolve error
Hi,
I think you should configure your engine with engine.configure(“”, “”, “Minimum”, “Maximum”, “Centroid”, "General");
as for obtaining a linguistic result, you could do something like: engine.getOutputVariable("Power").highestActivatedTerm().getTerm().getName()
It would be a good idea to check the source code of jfuzzylite. Specifically, the following:
(1) OutputVariable
: https://github.com/fuzzylite/jfuzzylite/blob/master/jfuzzylite/src/main/java/com/fuzzylite/variable/OutputVariable.java
(2) The fuzzy output value in an OutputVariable
is an Aggregated
term:
https://github.com/fuzzylite/jfuzzylite/blob/master/jfuzzylite/src/main/java/com/fuzzylite/term/Aggregated.java
(3) The highestActivatedTerm
is an Active
term: https://github.com/fuzzylite/jfuzzylite/blob/master/jfuzzylite/src/main/java/com/fuzzylite/term/Activated.java
Cheers.