add function for power spectrum

1 job 于master in 1 minute 和 19 second (queued for 2 second)