Skip to content

I cannot get inference rules right #35

Discussion options

You must be logged in to vote

Hi @Psyhackological ,

Very cool you found the package and wanted to use it in your class. Hopefully it was useful.

The problem are the membership functions

senior = TrapezoidalMF(50, 60, 80, 80)

In this case you have the same value for the right shoulder and right foot. This leads to 0/0 division which leads to the NaN, which then poisons all the other computations. The problem with this is that if you see the membership function as a mathematical function, now it is not continuous at 80. What would you expect the value at it to be? 0 or 1?

Meanwhile, you can define it as

senior = LinearMF(50, 60)

This leads to the same membership function in this case (because 80 is the boundary of the d…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Psyhackological
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants