match_cov_and_spectrum
#
- hypercoil.neuro.synth.match_cov_and_spectrum(signal: Tensor, spectrum: Tensor, cov: Tensor) Tensor [source]#
Transform an input signal to match a given
spectrum
andcovariance matrix
.- Dimension:
- signal :
D denotes dimension of the multivariate signal and N denotes the number of observations per channel.
- spectrum :
D as above. F denotes the frequency dimension of the signal, e.g., N / 2 + 1.
- cov :
As above.
- signal :
Parameters#
- signaltensor
Input signal.
- spectrumtensor
Spectrum to be matched.
- covtensor
Covariance matrix to be matched.