Title: Least squares spectral analysis