wecopttool.core.td_to_fd
- td_to_fd(td, fft=True, zero_freq=True)[source]
Convert a real array of time-domain responses to a complex array of Fourier coefficients.
If
zero_freq = False
(not default), the mean (DC) componentX0
is excluded, and the matrix/vector length is reduced by 1.Opposite of
wecopttool.fd_to_td()
- Parameters:
- Return type:
See also