Spectral analysis of segmented data