Matlab code for implementations of variants of the Fourier PCA algorithm