Unify psd csd calculations: addressing #69
This MR essentially addresses #69 (closed) and unifies the PSD and CSD calculations; with some care, the PSD is now a CSD and can be either coarse-grained or welch-averaged. None of the defaults have changed, but this helps us keep track of the calculations more efficiently.
This will also be helpful for:
-
stochmon
: CSDs and PSDs should be calculated the same way, otherwise coherences can becoh > 1
@derek.davis -
SSI
: similarly to stochmon, I think that as we perform operations of the typea*CSD - b*PSD
, these can't be calculated with two different averaging procedures... @jessica.lawrence @kevin.turbang