A STFT devides an input signal, {ix(n)}, into N sections according to the sliding window, and performs FFT on each sections. It can be defined as
where
represents the sliding window that emphasizes local frequency components within it.
STFT is computed in the following procedure:
/STFT_algorithms_overlap.png?v=79340)
The result of STFT is a matrix that has N columns and M rows, where
and
jth column in the matrix represents the FFT result of the jth section of the input signal and the X value of this column is the center time of the jth section. The Y values are the frequency obtained from the sampling interval
and the number of input data points N. The ith frequency is given by:
About the automatic computation of the sampling interval:
When <Auto> is selected for Sampling Interval, the sampling interval needed in the computation is computed automatically by Origin.
The automatically computed sampling interval is the average increment of the time sequence, which is usually from the X column associated with the input signal. If there is no associated X column, the row numbers will be used. Note that if Origin fails to get the average increment, the sampling interval will be set to 1.
Windows
Specifies the window type used by FFT. The default option is Hanning.
![w[n] =
\begin{cases}
1, & \mbox{if }0 \leq n \leq N-1 \\
0, & \mbox{otherwise }
\end{cases} w[n] =
\begin{cases}
1, & \mbox{if }0 \leq n \leq N-1 \\
0, & \mbox{otherwise }
\end{cases}](/origin-help/en/images/Algorithm_(STFT)/math-1dff02816a08f5abee4db570718fae2e.png?v=0)
/math-8e83f30fc0b782e1d8b13c070ff8819d.png?v=0)
![w[n]=\frac 2{N-1}\left[ \frac{N-1}2-\left| n-\frac{N-1}2\right| \right] \,\! w[n]=\frac 2{N-1}\left[ \frac{N-1}2-\left| n-\frac{N-1}2\right| \right] \,\!](/origin-help/en/images/Algorithm_(STFT)/math-e66a9f4dcc74b3ab6be533c1c74db331.png?v=0)
![w[n]=\frac 12\left[ 1-\cos (\frac{2\pi n}{N-1})\right] \,\! w[n]=\frac 12\left[ 1-\cos (\frac{2\pi n}{N-1})\right] \,\!](/origin-help/en/images/Algorithm_(STFT)/math-f625e1fbe6f2ba1e906c542714a5a198.png?v=0)
![w[n]=exp(-0.5(Alpha( \frac{2n}{N-1}-1 ))^2) \,\! w[n]=exp(-0.5(Alpha( \frac{2n}{N-1}-1 ))^2) \,\!](/origin-help/en/images/Algorithm_(STFT)/math-fab7a042f67f1dfb6dc5556e228508ec.png?v=0)
![w[n]=I(beta*\sqrt{1-(\frac{2n}{N-1}-1)^2}) / I(beta) \,\! w[n]=I(beta*\sqrt{1-(\frac{2n}{N-1}-1)^2}) / I(beta) \,\!](/origin-help/en/images/Algorithm_(STFT)/math-04b7bbeb549a0b1d5ee22e3d50305676.png?v=0)
Results
/math-12ec70533ced68ec298d82a8c5ab34e7.png?v=0)
Time
Each FFT section's time in the STFT result corresponds to the center of the time interval for each section's signal. e.g. for a section interval (ti, ti+(N-1)*dt), its FFT section's time in the STFT result is: ti+(N-1)*dt/2.