-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in membership function #4
Comments
Same here, tried using this library in my uni assignment but kept getting wrong answers. Something is not right here |
I believe you need to do |
I have modified the code to create a new FuzzyEngine in each iteration, but the results still don't seem right. Using:
gives the following results:
So, I understand the results at low temperatures - the membership of the "high" function is one, so it chooses the centre of the "high" triangle, which is 50. But at high water temperatures, I would expect the result to be the centre of the "low" triangle, which is 25. But instead we get 37.5 - so it seems to be computing the centre of both the high and low triangles, which is incorrect. |
In submited example I added
for
loop to iterate through all water temperatures:Which give me:
Why there are no
result
between50
and75
? Also, there are noresult
between25
and50
.The text was updated successfully, but these errors were encountered: