home › Forums › # Technical Support › Getting Started with Android Studio – Help
- This topic has 8 replies, 2 voices, and was last updated 7 years, 8 months ago by
Juan Rada-Vilela (admin).
-
AuthorPosts
-
December 13, 2015 at 18:58 #1999
Unknown
MemberGood 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.
December 14, 2015 at 04:56 #2000Juan Rada-Vilela (admin)
KeymasterHi,
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.
Cheers.
December 14, 2015 at 21:44 #2001Unknown
MemberI’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?
December 15, 2015 at 02:19 #2002Juan Rada-Vilela (admin)
KeymasterHi,
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.
<dependency> <groupId>com.fuzzylite</groupId> <artifactId>jfuzzylite</artifactId> <version>5.0.1</version> </dependency>
Versions earlier than 5.0 do not have the
OutputVariable.getOutputValue()
method.December 15, 2015 at 22:29 #2005Unknown
MemberThank you!
I will definitely recommend this library to my classmates!
January 3, 2016 at 01:38 #2027Unknown
MemberHi 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.
engine.configure("minimum","maximum","minimum","maximum","centroid");
January 4, 2016 at 09:41 #2030Juan Rada-Vilela (admin)
KeymasterHi,
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()
).Cheers.
January 7, 2016 at 23:07 #2045Unknown
MemberHello, 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?January 7, 2016 at 23:32 #2046Juan Rada-Vilela (admin)
KeymasterHi,
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 withIntegralDefuzzifier::setDefaultResolution()
, which will apply to every newly createdIntegralDefuzzifier
. The resolution of the any givenIntegralDefuzzifier
can be set with class method[Centroid|BiSector|...]::setResolution()
.Cheers.
-
AuthorPosts
- You must be logged in to reply to this topic.