compute_fft#
- ansys.aedt.core.generic.file_utils.compute_fft(time_values: pandas.Series, data_values: pandas.Series, window: str = None) tuple | bool#
Compute FFT of input transient data.
- Parameters:
- time_valuespandas.Series
Time points corresponding to the x-axis of the input transient data.
- data_valuespandas.Series
Points corresponding to the y-axis.
- window
str,optional Fft window. Options are “hamming”, “hanning”, “blackman”, “bartlett”.
- Returns:
Examples
>>> import pandas as pd >>> from ansys.aedt.core.generic.file_utils import compute_fft >>> compute_fft(pd.Series([0.0, 1e-9, 2e-9]), pd.Series([0.0, 1.0, 0.0]))