on-internet
← Community

Projectile issues agregator [closed]

Stack Overflow ·

I have plots that look like this and it doesnt show. When should I use product implication (prod) instead of minimum (min), and how does it affect defuzition ' ' T= np.linspace(0,40,401) temperatura = { "zimno": fuzz.trapmf(T, [0, 0, 12, 19]), "komfortowo": fuzz.trimf(T, [17, 21.5, 26]), "goraco": fuzz.trapmf(T, [24, 30, 40, 40]), } def rysuj_termy(x, termy, punkt = 0 ): for nazwa, mf in termy.items(): plt.plot(x, mf) if punkt is not None: plt.axvline(punkt) for nazwa, mf in termy.items(): mu = fuzz.interp_membership(x, mf, punkt) print(mu) plt.show() rysuj_termy(T, temperatura, punkt =23 ) A

Comments

Sign in or sign up to comment and upvote.

No comments yet.