Execute the gaussian() function, which receives x values, mu, and sig. Save the results in the variable y_values.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
# TODO 
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')
])
Execute the gaussian() function, which receives x values, mu, and sig. Save
the results in the variable y_values.
Transcribed Image Text:Execute the gaussian() function, which receives x values, mu, and sig. Save the results in the variable y_values.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Randomized Select Algorithm
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education