compute periodogram before subsampling