File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes fuzzy logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "fuzzy logic" Watch "fuzzy logic" New topic
Author

fuzzy logic

kajaja noto
Greenhorn

Joined: Mar 03, 2005
Posts: 8
i am tyring to implement a program that shows how to use fuzzy logic to decide on a degree of membership a document has to a search query, to do this i need to be able to show a graph of the results of a formula. i want y axis to be degree of membership and x axis to be no. of string occurrences in the document(i have a method to retrieve this.)the maximum value degree of membership can take is 1. i.e.
if no. of occ <1 then membership = 0,
if 1<no. of occ < 3 then membership = ((no. of occ) - 1)/2
if no. of occ>3 then membership is 1

i want to show the results in a line graph.

can anyone please help
Horatio Westock
Ranch Hand

Joined: Feb 23, 2005
Posts: 221
The easiest way to do graphs and charts is probably to use an existing package. One such package is JFreeChart.

If you were feeling masochistic, you could probably draw some simple charts using the Java 2D API directly, but I wouldn't bother unless you absolutely can't use a 3rd party package.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fuzzy logic
 
Similar Threads
Getting my HTML output to backspace one character
Setting labels for the X & Y axis of a chart
Good and Evil
cewolf XY Chart
How to draw a chart with multiple y-axises