Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me fix the output code below in the picture i want to change the graph base on this number Rate of temperature Fuzzy

Please help me fix the output code below in the picture i want to change the graph base on this number
Rate of temperature
Fuzzy Region Crisp Value
Decreasing 16
Stable 20
Increasing 24
Himport numpy as np
import matplotlib.pyplot as plt
temperature_range = np.arange(20,35,1)
def Decreasing (x):
return np.maximum(0, np.minimum((16- x)/4,1))
def Stable (x):
return np.maximum(0, np.minimum(np.minimum((x -20)/2,(20- x)/2),1))
def Increasing (x):
return np.maximum(0, np.minimum(np.minimum((x -24)/2,(22- x)/2),1))
plt.figure(figsize=(10,4))
plt.plot(temperature_range, Decreasing(temperature_range), label="Decreasing")
plt.plot(temperature_range, Stable(temperature_range), label="Stable")
plt.plot(temperature_range, Increasing(temperature_range), label="Increasing")
plt.title("Rate of temperature ")
plt.xlabel("")
plt.ylabel("Degree of Membership")
plt.legend()
plt.show()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

1. How might volunteering help the employer and the employee?

Answered: 1 week ago