electricpy.sampfft¶
- electricpy.sampfft(data, dt, minfreq=60.0, complex=False)[source]¶
Sample Dataset FFT Evaluator.
Given a data array and the delta-t for the data array, evaluates the harmonic composition of the data.
- Parameters:
data (numpy.ndarray) – Numpy data array containing 1-D values.
dt (float) – Time-difference (delta-t) between data samples.
minfreq (float, optional) – Minimum frequency (in Hz) at which to evaluate FFT. default=60
complex (bool, optional) – Control argument to force returned values into complex format.
- Returns:
DC (float) – The DC offset of the FFT result.
A (list of float) – The real components from the FFT.
B (list of float) – The imaginary components from the FFT.