I've found out that once a calculation is made the premise is not reset when calculating for another value, thus calculating invalid values.
PremiseModifier value gets a value and it never gets a lower value, even on the Defuzzify method where it says //reset membership functions, it does nothing as the setter filters out setting a lower value.
I've fixed it for myself by adding a reset method which sets the PremiseModifier to zero.
I've found out that once a calculation is made the premise is not reset when calculating for another value, thus calculating invalid values.
PremiseModifier value gets a value and it never gets a lower value, even on the Defuzzify method where it says //reset membership functions, it does nothing as the setter filters out setting a lower value.
I've fixed it for myself by adding a reset method which sets the PremiseModifier to zero.