match_reference#
- hypercoil.neuro.synth.match_reference(signal: Tensor, reference: Tensor, use_mean: bool = False) Tensor[source]#
Match both the
spectrumandcovarianceof a reference signal.- Dimension:
- signal : \((D, N)\)
D denotes dimension of the multivariate signal and N denotes the number of observations per channel.
- reference : \((D, N)\)
As above.
- Parameters:
- signaltensor
Input signal.
- referencetensor
Reference signal.
- use_meanbool (default False)
Indicates that, instead of matching the spectrum of the corresponding channel in the reference signal, all channels are matched to the mean spectrum across all reference channels.