Next: Amplitude metrics
Up: Introduction to power spectral
Previous: Sample matlab code for
Contents
Now, we mentioned that the PSD is defined as the Fourier transform
of the autocorrelation function. Although our periodgram method does
not use the autocorrelation function directly, it is equivalent to
it. The problem is that we only have a finite record length so for
small lags, we have lots of samples to compute the autocorrelation
from, but at large lags we only have a few samples to compute the
autocorrelation from . Thus, the autocorrelation estimates will have
more variance at large lags and will likely be less accurate. The
Blackman-Tukey method takes this into account by weighting the autocorrelation
estimate by a window function (typically the triangular window). See
[6].
PxxBT(f )= w(m)(m)e-i2fm
And of course we can average multiple overlapping segments for this
method.
$username="comment";
$password="12345aa";
$database="commentsdb1";
$link = mysql_connect('mechanicalvibrationc.domaincommysql.com', 'comments', $password);
if (!$link) {
die('Could not connect: ' . mysql_error());
}
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT * FROM `comments` WHERE URL='$URL'";
#echo "query is " . $query;
$result = mysql_query($query);
mysql_close();
while($row = mysql_fetch_array($result)) {
echo "User " . $row['Name'] . " Posted on " . $row['DateTime'];
echo "
";
echo $row['Comment'];
echo "
";
}
echo "
";
?>
Leave a comment on this page:
This work by Daniel Kiracofe (daniel dot kiracofe at gmail dot com)
is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.