program编程讲解、辅导Python程序设计 调试Matlab程序|解析C/C++编程

- 首页 >> Python编程
Scientific Computation
Project 4 (version 1.0)
There are four files for this assignment: 1) the project description (this file), 2) project4.py,
a Python module which you will complete and submit on Blackboard (see below for
details), 3) report4.tex, a template file for your short report which will also be submitted
on Blackboard, and 4) data4.wav, a data file needed for the assignment.
1. (8 pts) Read the paper, Time-Frequency Analysis of Musical Instruments by Alm
& Walker (link: https://epubs.siam.org/doi/pdf/10.1137/S00361445003822).
Provide a concise (approximately half-page) critical summary of the paper. You
should structure your discussion around key concepts from the paper, what you
find interesting or novel. You should also carefully consider connections to material
covered during the term and discuss these connections. Your summary will be
marked based on its clarity, originality, and interpretation.
2. (6 pts) Complete the function testSignal in project4.py so that it computes the
spectrogram and scalogram for the test signal given in equation (4.7) of the paper.
Your function should also create figures displaying the spectrogram and scalogram
which should be included in your report. The figures do not need to be identical to
the figures in the paper, however they should be well-designed. Add a description
of the figures to your report, and include an explanation of key similarities and/or
differences between the two figures.
3. (6 pts) You have been provided with a wav file containing a short musical excerpt.
Analyze this excerpt using one or more scalograms. Your analysis should make
substantive connections between your scalogram(s) and the excerpt. It should also
explain why your figures are designed as they are and broadly show an understanding
of the relevant material in the paper. Add your discussion and figure(s) to your
report, and add the code used to generate the figure(s) to the analyze function in
project4.py.
Your entire report should be no more than 6 pages including figures.
Further guidance
1. If you have trouble accessing the paper, try searching for it on the college library
webpage.
1
2. Note that Morlet and Gabor wavelets are quite similar, and you may use Morlet
wavelets for this assignment. In either case, it may be helpful to look at the
documentation for scipy.signal.morlet2.
3. You should add code to the test==main portion of your Python file to call testSignal
and analyze and generate the figures included in your report.
4. You may add additional functions as needed.
5. You may use numpy, scipy, and matplotlib as needed. Please do not use other
modules without permission.
6. This assignment is for M4/M5 (MSci/MSc) students only.
Submitting the assignment
To submit the assignment for assessment, go to the course blackboard page, and find the
link for “Project 4” Click on the “Project 4”, and then click on “Write Submission” and
add the statement:“This is all my own unaided work unless stated otherwise” confirming
the work as your own
Click on “Browse My Computer” and upload your final files (project4.py, report4.pdf).
Finally, click “Submit”.
2

站长地图