Function to calculate a spectrum
We need a generalized function to calculate a spectrum out of a time series.
I already implemented this here for the live spectrum animator in polt
.
Still, proper tests and especially validating the Parseval Theorem (maybe like this or this)