ODO 3: Invoke the gaussian() function, which accepts x_values, mu, and sig. Save the results in the variable y_values. # TODO 3 y_values =
ODO 3: Invoke the gaussian() function, which accepts x_values, mu, and sig. Save the results in the variable y_values. # TODO 3 y_values =
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 6RQ
Related questions
Question
TODO 3: Invoke the gaussian() function, which accepts x_values, mu, and sig. Save the results in the variable y_values.
# TODO 3
y_values =
display(y_values)
todo_check([
(y_values.shape == (120,),'y_values does not have the correct shape of (120,)'),
(np.all(np.isclose(y_values, np.array([1.33830226e-04,1.74726145e-04,2.27090415e-04,2.93817012e-04,3.78435874e-04,4.85226918e-04,6.19347941e-04,7.86976449e-04,9.95465009e-04,1.25350909e-03,1.57132566e-03,1.96083994e-03,2.43587675e-03,3.01235189e-03,3.70845762e-03,4.54483545e-03,5.54472782e-03,6.73409948e-03,8.14171785e-03,9.79918133e-03,1.17408832e-02,1.40038988e-02,1.66277845e-02,1.96542754e-02,2.31268728e-02,2.70903123e-02,3.15899063e-02,3.66707582e-02,4.23768496e-02,4.87500056e-02,5.58287494e-02,6.36470609e-02,7.22330635e-02,8.16076628e-02,9.17831740e-02,1.02761972e-01,1.14535209e-01,1.27081643e-01,1.40366624e-01,1.54341287e-01,1.68941989e-01,1.84090049e-01,1.99691809e-01,2.15639052e-01,2.31809806e-01,2.48069526e-01,2.64272673e-01,2.80264650e-01,2.95884091e-01,3.10965445e-01,3.25341808e-01,3.38847936e-01,3.51323369e-01,3.62615579e-01,3.72583059e-01,3.81098269e-01,3.88050344e-01,3.93347502e-01,3.96919051e-01,3.98716969e-01,3.98716969e-01,3.96919051e-01,3.93347502e-01,3.88050344e-01,3.81098269e-01,3.72583059e-01,3.62615579e-01,3.51323369e-01,3.38847936e-01,3.25341808e-01,3.10965445e-01,2.95884091e-01,2.80264650e-01,2.64272673e-01,2.48069526e-01,2.31809806e-01,2.15639052e-01,1.99691809e-01,1.84090049e-01,1.68941989e-01,1.54341287e-01,1.40366624e-01,1.27081643e-01,1.14535209e-01,1.02761972e-01,9.17831740e-02,8.16076628e-02,7.22330635e-02,6.36470609e-02,5.58287494e-02,4.87500056e-02,4.23768496e-02,3.66707582e-02,3.15899063e-02,2.70903123e-02,2.31268728e-02,1.96542754e-02,1.66277845e-02,1.40038988e-02,1.17408832e-02,9.79918133e-03,8.14171785e-03,6.73409948e-03,5.54472782e-03,4.54483545e-03,3.70845762e-03,3.01235189e-03,2.43587675e-03,1.96083994e-03,1.57132566e-03,1.25350909e-03,9.95465009e-04,7.86976449e-04,6.19347941e-04,4.85226918e-04,3.78435874e-04,2.93817012e-04,2.27090415e-04,1.74726145e-04,1.33830226e-04]),rtol=.001)),'y_values does not contain the correct values')
])
Expected output:
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT