Debian Codegraph @

docs/manual/Spectrum__Get_central_moment___.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Spectrum: Get central moment...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Spectrum: Get central moment...
13 </b></font></table></table>
14 <p>A command to query the selected <a href="Spectrum.html">Spectrum</a> object.</p>
15 <p>If the complex spectrum is given by <i>S</i>(<i>f</i>), the <i>n</i>th central spectral moment is given by</p>
16 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle>&#8747;<sub>0</sub><sup>&#8734;</sup> (<i>f</i> &#8211; <i>f</i><sub><i>c</i></sub>)<sup><i>n</i></sup> |<i>S</i>(<i>f</i>)|<sup><i>p</i></sup> <i>df</i></table>
17 <p>divided by the "energy"</p>
18 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle>&#8747;<sub>0</sub><sup>&#8734;</sup> |<i>S</i>(<i>f</i>)|<sup><i>p</i></sup> <i>df</i></table>
19 <p>In this formula, <i>f</i><sub><i>c</i></sub> is the spectral centre of gravity (see <a href="Spectrum__Get_centre_of_gravity___.html">Spectrum: Get centre of gravity...</a>). Thus, the <i>n</i>th central moment is the average of (<i>f</i> &#8211; <i>f</i><sub><i>c</i></sub>)<sup><i>n</i></sup> over the entire frequency domain, weighted by |<i>S</i>(<i>f</i>)|<sup><i>p</i></sup>. For <i>p</i> = 2, the weighting is done by the power spectrum, and for <i>p</i> = 1, the weighting is done by the absolute spectrum. A value of <i>p</i> = 2/3 has been seen as well.</p>
20 <h2>Settings</h2>
21 <dl>
22 <dt><b>Moment</b>
23 <dd>the number <i>n</i> in the formulas above. A number of 3 gives you the third central spectral moment. It is not impossible to ask for fractional moments, e.g. <i>n</i> = 1.5.</dd>
24 <dt><b>Power</b>
25 <dd>the quantity <i>p</i> in the formula above. Common values are 2, 1, or 2/3.</dd>
26 </dl>
27 <h2>Usage</h2>
28 <p>For <i>n</i> = 1, the central moment should be zero, since the centre of gravity <i>f</i><sub><i>c</i></sub> is computed with the same <i>p</i>. For <i>n</i> = 2, you get the variance of the frequencies in the spectrum; the standard deviation of the frequency is the square root of this. For <i>n</i> = 3, you get the non-normalized spectral skewness; to normalize it, you can divide by the 1.5 power of the second moment. For <i>n</i> = 4, you get the non-normalized spectral kurtosis; to normalize it, you can divide by the square of the second moment and subtract 3. Praat can directly give you the quantities mentioned here:</p>
29 <dl>
30 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Spectrum__Get_centre_of_gravity___.html">Spectrum: Get centre of gravity...</a></dd>
31 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Spectrum__Get_standard_deviation___.html">Spectrum: Get standard deviation...</a></dd>
32 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Spectrum__Get_skewness___.html">Spectrum: Get skewness...</a></dd>
33 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Spectrum__Get_kurtosis___.html">Spectrum: Get kurtosis...</a></dd>
34 </dl>
35 <hr>
36 <address>
37 <p>© ppgb 20020323</p>
38 </address>
39 </body>
40 </html>