home Forums # Technical Support jfuzzylite with two input values Reply To: jfuzzylite with two input values

#1668

Hi vinimac,

thank you for your post.

The approximation issue you are experiencing may be due to a small bug in Triangle.java.

Could you please try the following fix and compile jfuzzylite again?

In Triangle.java, substitute line 75:

if (Op.isLE(x, a) || Op.isGE(x, c))

with

if (Op.isLt(x, a) || Op.isGt(x, c))

Instead of a <= or >=, the change is for < or >.

Please let me know if this fixes your issue.

Cheers.