Week 9: October 24 - 28

Data Capture and Analysis

A common requirement in engineering and the natural sciences is to acquire real-world data using sensors and to perform some analysis of the data acquired. Smartphones contain increasing sophisticated sensors for capturing such data. We use one to capture and store the sound made by a bouncing ping-pong ball.

WAV File Format

We learn about one format for storing audio data - the WAV file. Data stored in this format is analyzed to explore how well a mathematical model of inelastic collisions fits the real-world data we generate in class.

Python

  • enumerate

NumPy

  • argmin, argmax

Matplotlib

  • loglog
  • semilogx
  • semilogy
  • axvline
  • axhline

SciPy

  • scipy.io.wavfile.read
  • scipy.io.wavfile.write

Quiz 7: NumPy Arrays and Indexing

  • Array creation
  • Multi-dimensional arrays
  • Array indexing and slicing

Sample Quiz 7