aspcore.fouriertransform.insert_negative_frequencies

aspcore.fouriertransform.insert_negative_frequencies(freq_signal, even)

Inserts the values associated with negative frequencies.

Requires the assumption of conjugate symmetry, i.e. the original signal was real. Can be used in conjunction with get_real_freqs

Parameters:
  • freq_signal (ndarray of shape (num_real_freq, ...))

  • even (bool) – if True, the full dft length was even, if False it was odd.

Returns:

freq_signal_full – num_freq is even if even=True, and odd if even=False

Return type:

ndarray of shape (num_freq, …)