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 and covariance matrix.

Dimension:
signal : \((D, N)\)

D denotes dimension of the multivariate signal and N denotes the number of observations per channel.

spectrum : \((D, F)\)

D as above. F denotes the frequency dimension of the signal, e.g., N / 2 + 1.

cov : \((D, D)\)

As above.

Parameters#

signaltensor

Input signal.

spectrumtensor

Spectrum to be matched.

covtensor

Covariance matrix to be matched.