Compressed air energy storage: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>KTo288
→‎See also: add Hydraulic accumulator to see also list
Fixed typo
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The '''short-time Fourier transform''' ('''STFT'''), or alternatively '''short-term Fourier transform''', is a [[List of Fourier-related transforms|Fourier-related transform]] used to determine the sinusoidal frequency and phase content of local sections of a signal as it changes over time.
Greetings! I am Dalton. Acting is a thing that Now i'm totally addicted to. My house is now in Vermont and I don't design on changing it. I am a cashier. I'm not high-quality at webdesign but your preferred retail stores want to check the best website: http://circuspartypanama.com<br><br>Here is my webpage :: [http://circuspartypanama.com clash of clans unlimited gems]
 
== STFT ==
=== Continuous-time STFT ===
Simply, in the continuous-time case, the function to be transformed is multiplied by a [[window function]] which is nonzero for only a short period of time.  The [[Fourier transform]] (a one-dimensional function) of the resulting signal is taken as the window is slid along the time axis, resulting in a two-dimensional representation of the signal.  Mathematically, this is written as:
 
:<math>\mathbf{STFT}\{x(t)\}(\tau,\omega) \equiv X(\tau, \omega) = \int_{-\infty}^{\infty} x(t) w(t-\tau) e^{-j \omega t} \, dt </math>
 
where ''w''(''t'') is the [[window function]], commonly a [[Window function#Hann_.28Hanning.29_window|Hann window]] or [[Window function#Gaussian window|Gaussian window]] bell centered around zero, and ''x''(''t'') is the signal to be transformed. ''X''(τ,ω) is essentially the Fourier Transform of ''x''(''t'')''w''(''t''-τ), a [[complex function]] representing the phase and magnitude of the signal over time and frequency. Often [[phase unwrapping]] is employed along either or both the time axis, τ, and frequency axis, ω, to suppress any [[jump discontinuity]] of the phase result of the STFT.  The time index τ is normally considered to be "''slow''" time and usually not expressed in as high resolution as time ''t''.
 
=== Discrete-time STFT ===
{{See also|Modified discrete cosine transform}}
In the discrete time case, the data to be transformed could be broken up into chunks or frames (which usually overlap each other, to reduce artifacts at the boundary). Each chunk is [[Fourier transform]]ed, and the complex result is added to a matrix, which records magnitude and phase for each point in time and frequency.  This can be expressed as:
 
:<math>\mathbf{STFT}\{x[n]\}(m,\omega)\equiv X(m,\omega) = \sum_{n=-\infty}^{\infty} x[n]w[n-m]e^{-j \omega n} </math>
 
likewise, with signal ''x''[''n''] and window ''w''[''n''].  In this case, ''m'' is discrete and ω is continuous, but in most typical applications the STFT is performed on a computer using the [[Fast Fourier Transform]], so both variables are discrete and [[Quantization (signal processing)|quantized]].
 
The [[magnitude (mathematics)|magnitude]] squared of the STFT yields the [[spectrogram]] of the function:
 
:<math>\operatorname{spectrogram}\{x(t)\}(\tau, \omega) \equiv |X(\tau, \omega)|^2 </math>
 
See also the [[modified discrete cosine transform]] (MDCT), which is also a Fourier-related transform that uses overlapping windows.
 
====Sliding DFT====
 
If only a small number of ω are desired, or if the STFT is desired to be evaluated for every shift ''m'' of the window, then the STFT may be more efficiently evaluated using a [[sliding DFT]] algorithm.<ref>E. Jacobsen and R. Lyons, [http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1184347 The sliding DFT], ''Signal Processing Magazine'' vol. 20, issue 2, pp. 74–80 (March 2003).</ref>
 
== Inverse STFT ==
 
The STFT is [[invertible function|invertible]], that is, the original signal can be recovered from the transform by the Inverse STFT. The most widely accepted way of inverting the STFT is by using the overlap-add (OLA) method, which also allows for modifications to the STFT complex spectrum. This makes for a versatile signal processing method,<ref>{{cite journal
| author = Jont B. Allen
| year = 1977
| title = Short Time Spectral Analysis, Synthesis, and Modification by Discrete Fourier Transform
| journal = IEEE Transactions on Acoustics, Speech, and Signal Processing
| volume = ASSP-25
| number = 3
| month = June
| pages = 235–238
| url = http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1162950
}}</ref> referred to as the ''overlap and add with modifications'' method.
 
=== Continuous-time STFT ===
 
Given the width and definition of the window function ''w''(''t''), we initially require the area of the window function to be scaled so that
 
:<math> \int_{-\infty}^{\infty} w(\tau) \, d\tau  = 1.</math>
 
It easily follows that
 
:<math> \int_{-\infty}^{\infty} w(t-\tau) \, d\tau  = 1 \quad \forall \ t </math>
 
and
 
:<math> x(t) = x(t) \int_{-\infty}^{\infty} w(t-\tau) \, d\tau  = \int_{-\infty}^{\infty} x(t) w(t-\tau) \, d\tau. </math>
 
The continuous Fourier Transform is
 
:<math> X(\omega) = \int_{-\infty}^{\infty} x(t) e^{-j \omega t} \, dt. </math>
 
Substituting ''x''(''t'') from above:
 
:<math> X(\omega) = \int_{-\infty}^{\infty} \left[ \int_{-\infty}^{\infty} x(t) w(t-\tau) \, d\tau \right] \, e^{-j \omega t} \, dt </math>
 
:::<math> = \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} x(t) w(t-\tau) \, e^{-j \omega t} \, d\tau \, dt. </math>
 
Swapping order of integration:
 
:<math> X(\omega) = \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} x(t) w(t-\tau) \, e^{-j \omega t} \, dt \, d\tau </math>
 
:::<math> = \int_{-\infty}^{\infty} \left[ \int_{-\infty}^{\infty} x(t) w(t-\tau) \, e^{-j \omega t} \, dt \right] \, d\tau </math>
 
:::<math> = \int_{-\infty}^{\infty} X(\tau, \omega) \, d\tau. </math>
 
So the Fourier Transform can be seen as a sort of phase coherent sum of all of the STFTs of ''x''(''t'').  Since the inverse Fourier transform is
 
:<math> x(t)  = \frac{1}{2 \pi} \int_{-\infty}^{\infty} X(\omega) e^{+j \omega t} \, d\omega, </math>
 
then ''x''(''t'') can be recovered from ''X''(τ,ω) as
 
:<math> x(t)  = \frac{1}{2 \pi} \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} X(\tau, \omega) e^{+j \omega t} \, d\tau \, d\omega. </math>
 
or
 
:<math> x(t)  = \int_{-\infty}^{\infty} \left[ \frac{1}{2 \pi} \int_{-\infty}^{\infty} X(\tau, \omega) e^{+j \omega t} \, d\omega \right] \, d\tau. </math>
 
It can be seen, comparing to above that windowed "grain" or "wavelet" of ''x''(''t'') is
 
:<math> x(t) w(t-\tau)  = \frac{1}{2 \pi} \int_{-\infty}^{\infty} X(\tau, \omega) e^{+j \omega t} \, d\omega. </math>
 
the inverse Fourier transform of ''X''(τ,ω) for τ fixed.
 
== Resolution issues ==
{{see|Gabor limit}}
 
One of the downfalls of the STFT is that it has a fixed resolution.  The width of the windowing function relates to how the signal is represented—it determines whether there is good frequency resolution (frequency components close together can be separated) or good time resolution (the time at which frequencies change).  A wide window gives better frequency resolution but poor time resolution.  A narrower window gives good time resolution but poor frequency resolution.  These are called narrowband and wideband transforms, respectively.
 
[[Image:STFT - windows.png|frame|none|Comparison of STFT resolution. Left has better time resolution, and right has better frequency resolution.]]
 
This is one of the reasons for the creation of the [[wavelet transform]] and [[multiresolution analysis]], which can give good time resolution for high-frequency events, and good frequency resolution for low-frequency events, which is the type of analysis best suited for many real signals.
 
This property is related to the [[Werner Heisenberg|Heisenberg]] [[uncertainty principle]], but it is not a direct relationship – see [[Gabor limit]] for discussion.  The product of the standard deviation in time and frequency is limited.  The boundary of the uncertainty principle (best simultaneous resolution of both) is reached with a Gaussian window function, as the Gaussian minimizes the [[Fourier uncertainty principle]].  This is called the [[Gabor transform]] (and with modifications for multiresolution becomes the [[Morlet wavelet]] transform).
 
One can consider the STFT for varying window size as a two-dimensional domain (time and frequency), as illustrated in the example below, which can be calculated by varying the window size. However, this is no longer a strictly time–frequency representation – the kernel is not constant over the entire signal.
 
=== Example ===
 
Using the following sample signal <math>x(t)</math> that is composed of a set of four sinusoidal waveforms joined together in sequence.  Each waveform is only composed of one of four frequencies (10, 25, 50, 100 [[hertz|Hz]]).  The definition of <math>x(t)</math> is:
 
:<math>x(t)=\begin{cases}
\cos (2 \pi 10 t/\mathrm{s})  & 0\,\mathrm{s}  \le t < 5  \,\mathrm{s} \\
\cos (2 \pi 25 t/\mathrm{s})  & 5\,\mathrm{s}  \le t < 10\,\mathrm{s} \\
\cos (2 \pi 50 t/\mathrm{s})  & 10\,\mathrm{s} \le t < 15\,\mathrm{s} \\
\cos (2 \pi 100 t/\mathrm{s}) & 15\,\mathrm{s} \le t < 20\,\mathrm{s} \\
\end{cases}</math>
 
Then it is sampled at 400&nbsp;Hz. The following spectrograms were produced:
 
{|
|-
|[[Image:STFT colored spectrogram 25ms.png|thumb|300px|25 ms window]]
|[[Image:STFT colored spectrogram 125ms.png|thumb|300px|125 ms window]]
|-
|[[Image:STFT colored spectrogram 375ms.png|thumb|300px|375 ms window]]
|[[Image:STFT colored spectrogram 1000ms.png|thumb|300px|1000 ms window]]
|-
|}
 
{{clear}}
 
The 25 ms window allows us to identify a precise time at which the signals change but the precise frequencies are difficult to identify.  At the other end of the scale, the 1000 ms window allows the frequencies to be precisely seen but the time between frequency changes is blurred.
 
=== Explanation ===
 
It can also be explained with reference to the sampling and [[Nyquist frequency]].
 
Take a window of ''N''  samples from an arbitrary real-valued signal at sampling rate ''f''<sub>s</sub> .  Taking the Fourier transform produces ''N'' complex coefficients.  Of these coefficients only half are useful (the last ''N/2'' being the complex conjugate of the first ''N/2'' in reverse order, as this is a real valued signal).
 
These ''N/2'' coefficients represent the frequencies 0 to ''f''<sub>s</sub>/2 (Nyquist) and two consecutive coefficients are spaced apart by
''f''<sub>s</sub>/''N'' Hz.
 
To increase the frequency resolution of the window the frequency spacing of the coefficients needs to be reduced.  There are only two variables, but decreasing ''f''<sub>s</sub> (and keeping ''N'' constant) will cause the window size to increase — since there are now fewer samples per unit time.  The other alternative is to increase ''N'', but this again causes the window size to increase.  So any attempt to increase the frequency resolution causes a larger window size and therefore a reduction in time resolution—and vice-versa.
 
==Application==
[[Image:Short time fourier transform.PNG|frame|none|A STFT being used to analyze an audio signal across time.]]
STFTs as well as standard Fourier transforms and other tools are frequently used to analyze music. The [[spectrogram]] can, for example, show frequency on the horizontal axis, with the lowest frequencies at left, and the highest at the right. The height of each bar (augmented by color) represents the [[amplitude]] of the frequencies within that band. The depth dimension represents time, where each new bar was a separate distinct transform. Audio engineers use this kind of visual to gain information about an audio sample, for example, to locate the frequencies of specific noises (especially when used with greater frequency resolution) or to find frequencies which may be more or less resonant in the space where the signal was recorded. This information can be used for [[equalization]] or tuning other audio effects.
 
== See also ==
 
* [[Time-frequency representation]]
* [[Reassignment method]]
 
Other time-frequency transforms:
 
* [[wavelet transform]]
* [[chirplet transform]]
* [[fractional Fourier transform]]
* [[Newland transform]]
* [[Constant Q transform]]
* [[Gabor transform]]
* [[S transform]]
 
==References==
 
<references/>
 
== External links ==
* [http://tfd.sourceforge.net/ DiscreteTFDs – software for computing the short-time Fourier transform and other time-frequency distributions]
*[http://www.atmos.ucla.edu/tcd/ssa/ Singular Spectral Analysis - MultiTaper Method Toolkit] - a free software program to analyze short, noisy time series.
*[http://www.spectraworks.com kSpectra Toolkit for Mac OS X from SpectraWorks]
*[http://www.researchgate.net/publication/3091384_Time-stretched_short-time_Fourier_transform Time stretched short time Fourier transform for time frequency analysis of ultra wideband signals]
*[http://www.mathworks.fr/matlabcentral/fileexchange/33451-stft-mdct-and-inverses-onset-and-pitch-detection A BSD-licensed Matlab class to perform STFT and inverse STFT]
 
{{DEFAULTSORT:Short-Time Fourier Transform}}
[[Category:Fourier analysis]]
[[Category:Time–frequency analysis]]
[[Category:Transforms]]
[[Category:Signal processing]]

Latest revision as of 18:42, 1 January 2015

Greetings! I am Dalton. Acting is a thing that Now i'm totally addicted to. My house is now in Vermont and I don't design on changing it. I am a cashier. I'm not high-quality at webdesign but your preferred retail stores want to check the best website: http://circuspartypanama.com

Here is my webpage :: clash of clans unlimited gems