[Plugin] Fuzzy

Post your completed addons to share with the community

Post » Sun Jun 02, 2013 12:19 am

Wow.... I had some hard time understanding how it worked, mostly because I didn't know how to use fuzzy logic.
Great plugin !


EDIT :
[QUOTE=MelonGuns] @rexrainbow

oh!~I see..."eat" is both a rule name and a output value !!! THX!!! [/QUOTE]
The output values seems to be directly the fuzzy evaluation of the rules of the same name, with the parameters applied.

@rexrainbow :
The only thing I don't understand now is how you mix multiple rules in 1 output. Do you sum the different output of the rules (could be logic as each rules correspond to P,Zo or N of a value, could be complementary), or ponderate each output value to calculate the final output ? Maybe the max of every rule ?
For example, if I take the "eat" rules :
- if the stomach is positive, always want to eat
- if the stomach is neutral, want to eat if hp is neutral or negative
- if the stomach is negative, want to eat only if hp is negative too
So in this case, if the stomach is 30% positive and 70% neutral, you should ponderate the result of the 2 first rules by their respective %, am I wrong ? (this question is more about checking I understand your plugin right)
Last thing, could we, in this same example, mix all 3 rules in a "Fuzzy.OR" statement ? Something like
OR(
"+Stomach",
AND("stomach",OR("hp","-hp")),
AND("-stomach","-hp")
)

(Just realised this last question is basicaly the same as the previous one...)Guizmus2013-06-02 13:09:15
B
17
S
7
G
4
Posts: 461
Reputation: 5,907

Post » Thu Jun 20, 2013 1:49 pm

I also try to understand this kind of logic (c'est malin !)
https://dl.dropboxusercontent.com/u/5779181/C2Demo/Fuzzy%20-%20basic/index.html

helps a lot.
B
12
S
2
G
3
Posts: 16
Reputation: 2,813

Post » Tue Jun 25, 2013 3:30 pm

@Guizmus

[code]OR(
"+Stomach",
AND("stomach",OR("hp","-hp")),
AND("-stomach","-hp")
)[/code]
is ok.

Actually, the OR operation is max , AND operation is min in this plugin.
To mix multiple rules in 1 output, it uses OR operation.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Jun 23, 2014 9:43 am

Demo: Grade of color (Capx)
- Input a color at left-up textbox
- Then the grade of these 27 sample color will be shown at left side of each sample.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sat Aug 01, 2015 4:12 pm

@rexrainbow

I’m learning fuzzy logic and I found your plugin very interesting. I’m currently trying to work with it and understand it. I have a question to see if I’m getting it right.

Let’s suppose we have this Relationships between “100-point scale marks and fuzzy membership functions” in the URL bellow page 4.

"http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.461.8636&rep=rep1&type=pdf"

I’m supposing we are going to use membership with 3 levels (In this case Excellent won’t be taken into consideration)
If I want to define the membership in construct 2 using your plugin, will it be like this:

Define membership “marks”: P to “0, 60, 65”, S to “60, 65, 75, 80”, G to “75, 80, 85, 90”

Thank you in advance.
B
4
Posts: 11
Reputation: 218

Post » Tue Aug 04, 2015 7:20 am

@ah11

The functions of membersheep had been constrained in triangle. It did not support arbitrary function recently.

You might consider use other tool to learn fuzzy instead of this plugin. This plugin is built for application.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests