Modified discrete cosine transform: Difference between revisions

Content deleted Content added
less horrible english
Line 33:
== Window functions ==
 
[[file:MDCT_WF.png|thumb|upright=1.8|'''MDCT window functions:'''<br>blue: Cosine, red: Sine-CosineSine–Cosine, green: modified Kaiser-BesselKaiser–Bessel]]
 
In typical signal-compression applications, the transform properties are further improved by using a [[window function]] ''w''<sub>''n''</sub> (''n'' = 0, ..., 2''N''−1) that is multiplied with ''x''<sub>''n''</sub> in the MDCT and with ''y''<sub>''n''</sub> in the IMDCT formulas, above, in order to avoid discontinuities at the ''n'' = 0 and 2''N'' boundaries by making the function go smoothly to zero at those points. (That is, the window function is applied to the data ''before'' the MDCT or ''after'' the IMDCT.) In principle, ''x'' and ''y'' could have different window functions, and the window function could also change from one block to the next (especially for the case where data blocks of different sizes are combined), but for simplicity we consider the common case of identical window functions for equal-sized blocks.
Line 49:
:<math>w_n = \sin \left( \frac{\pi}{2} \sin^2 \left[\frac{\pi}{2N} \left(n+\frac{1}{2}\right) \right] \right)</math>
 
for Vorbis. AC-3 uses a [[KaiserKaiser_window#Kaiser–Bessel-Besselderived_(KBD)_window|Kaiser–Bessel derived (KBD) window]], and MPEG-4 AAC can also use a KBD window.
 
Note that windows applied to the MDCT are different from windows used for some other types of signal analysis, since they must fulfill the Princen-BradleyPrincen–Bradley condition. One of the reasons for this difference is that MDCT windows are applied twice, for both the MDCT (analysis) and the IMDCT (synthesis).
 
== Relationship to DCT-IV and Origin of TDAC ==