Debian Codegraph @

docs/manual/Spectrum__Get_centre_of_gravity___.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 centre of gravity...</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 centre of gravity...
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>), where <i>f</i> is the frequency, the <i>centre of gravity</i> 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> |<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>Thus, the centre of gravity is the average of <i>f</i> 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>Setting</h2>
21 <dl>
22 <dt><b>Power</b>
23 <dd>the quantity <i>p</i> in the formulas above. Common values are 2, 1, or 2/3.</dd>
24 </dl>
25 <h2>Interpretation</h2>
26 <p>The spectral centre of gravity is a measure for how high the frequencies in a spectrum are on average. For a sine wave with a frequency of 377 Hz, the centre of gravity is 377 Hz. You can easily check this in Praat by creating such a sine wave (<a href="Create_Sound_from_formula___.html">Create Sound from formula...</a>), then converting it to a Spectrum (<a href="Sound__To_Spectrum___.html">Sound: To Spectrum...</a>), then querying the mean frequency. For a white noise sampled at 22050 Hz, the centre of gravity is 5512.5 Hz, i.e. one half of the <a href="Nyquist_frequency.html">Nyquist frequency</a>.</p>
27 <h2>Related measures</h2>
28 <p>The centre of gravity is used in the computation of spectral moments:</p>
29 <dl>
30 <dd style="position:relative;padding-left:1em;text-indent:-2em">&#8226; <a href="Spectrum__Get_central_moment___.html">Spectrum: Get central moment...</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 20070225</p>
38 </address>
39 </body>
40 </html>