wecopttool.frequency
- frequency(f1, nfreq, zero_freq=True)[source]
Construct equally spaced frequency array.
The array includes
0and has length ofnfreq+1.f1is fundamental frequency (1st harmonic).Returns the frequency array, e.g.,
freqs = [0, f1, 2*f1, ..., nfreq*f1].If
zero_freq = False(not default), the mean (DC) component0is excluded, and the vector length is reduced by 1.