home Forums # Technical Support Getting Started with Android Studio – Help

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #1999

    Good Day!
    I’m just new in using jFuzzyLite. I want to use it in Android Studio. I’m not an expert but i already made some simple apps.

    Well,I already downloaded the java zip, I need some help in getting jfuzzylite.jar.

    PS. i’m using window 7 32 bit.



    I am not familiar with Android Studio, but you could check the following page http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio to add a dependency to your project.

    I think it should work if you add the following dependency:

    dependencies {
         compile 'com.fuzzylite:jfuzzylite:5.0.1'

    Let me know if this works for you.



    I’m now using the older version of jfuzzylite where the jfuzzylite.jar is already included.

    But I can’t use the “OutputVariable.getOutputValue()” , is there another way to get the output value?



    you should use the new library 5.0.1, you can download the jar file from https://github.com/fuzzylite/jfuzzylite/releases/tag/5.0.1 or with Maven.


    Versions earlier than 5.0 do not have the OutputVariable.getOutputValue() method.


    Thank you!

    I will definitely recommend this library to my classmates!


    Hi Juan. I encounter some problem with my project.

    I have 9 inputs and an output.
    I always get NaN as output.

    Im just a newbie in fuzzylogic. And I’m also using this code. Maybe this code has something to do about the error.



    the best way to evaluate your controller is using QtFuzzyLite. If you still have problems, please create a new post including your engine in FLL code (printing engine.toString()).



    Hello, I already solved the problem.
    However, i encountered a WARNING:
    WARNING: [accuracy warning] resolution (200)is smaller than the range (-330.000, 10000.000). Improve the accuracy by increasing the resolution to a value greater or equal to the range.
    How can I increase the resolution?



    The warning refers to the IntegralDefuzzifier you are using to integrate over the fuzzy output, but now that I think about it, you can ignore it. I am actually removing it. What you have to have in mind is that the higher the resolution of the defuzzifier, the more accurate the result will be, but also more computationally expensive. You can set the default resolution of new defuzzifiers with IntegralDefuzzifier::setDefaultResolution(), which will apply to every newly created IntegralDefuzzifier. The resolution of the any given IntegralDefuzzifier can be set with class method [Centroid|BiSector|...]::setResolution().


Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.