Stats 253: Analysis of Spatial and Temporal Data

Dennis Sun, Stanford University, Summer 2014


These are resources associated with Lecture 8 and Homework 4a.

Function R Code Matlab Code
STFT stft.R (contains both stft and istft) I recommend Dan Ellis's code for STFT and ISTFT. You may find that you get better results by using a frame size of 2048 (or higher), instead of the default of 256.
NMF
(Note: this code is incomplete; you have to fill in two lines)
nmf.R nmf.m