1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>pyulear</title>
<style type="text/css" media="all">
@import url("scilab_code.css");
@import url("xml_code.css");
@import url("c_code.css");
@import url("style.css");
</style>
</head>
<body>
<div class="manualnavbar">
<table width="100%"><tr>
<td width="30%">
<span class="previous"><a href="pwelch.html"><< pwelch</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_cc2bc01c47967d47fcf3507a91d572ba.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="qp_kaiser.html">qp_kaiser >></a></span>
</td>
</tr></table>
<hr />
</div>
<span class="path"><a href="index.html">FOSSEE Signal Processing Toolbox</a> >> <a href="section_cc2bc01c47967d47fcf3507a91d572ba.html">FOSSEE Signal Processing Toolbox</a> > pyulear</span>
<br /><br />
<div class="refnamediv"><h1 class="refname">pyulear</h1>
<p class="refpurpose"></p></div>
<div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3>
<div class="synopsis"><pre><span class="default">[</span><span class="default">psd</span><span class="default">,</span><span class="default">f_out</span><span class="default">] = </span><span class="functionid">pyulear</span><span class="default">(</span><span class="default">x</span><span class="default">,</span><span class="default">poles</span><span class="default">,</span><span class="default">freq</span><span class="default">,</span><span class="default">Fs</span><span class="default">,</span><span class="default">range</span><span class="default">,</span><span class="default">method</span><span class="default">,</span><span class="default">plot_type</span><span class="default">)</span>
<span class="default">All</span> <span class="default">but</span> <span class="default">the</span> <span class="default">first</span> <span class="default">two</span> <span class="default">arguments</span> <span class="default">are</span> <span class="default">optional</span> <span class="default">and</span> <span class="default">may</span> <span class="default">be</span> <span class="default">empty</span><span class="default">.</span></pre></div></div>
<div class="refsection"><h3 class="title">Parameters</h3>
<dl><dt><span class="term">x:</span>
<dd><p class="para">[vector] sampled data</p></dd></dt>
<dt><span class="term">poles:</span>
<dd><p class="para">[integer scalar] required number of poles of the AR model</p></dd></dt>
<dt><span class="term">freq:</span>
<dd><p class="para">[real vector] frequencies at which power spectral density is calculated [integer scalar] number of uniformly distributed frequency values at which spectral density is calculated. [default=256]</p></dd></dt>
<dt><span class="term">Fs:</span>
<dd><p class="para">[real scalar] sampling frequency (Hertz) [default=1]</p></dd></dt>
<dt><span class="term">range:</span>
<dd><p class="para">'half', 'onesided' : frequency range of the spectrum is from zero up to but not including sample_f/2. Power from negative frequencies is added to the positive side of the spectrum. 'whole', 'twosided' : frequency range of the spectrum is -sample_f/2 to sample_f/2, with negative frequencies stored in "wrap around" order after the positive frequencies; e.g. frequencies for a 10-point 'twosided' spectrum are 0 0.1 0.2 0.3 0.4 0.5 -0.4 -0.3 -0.2 -0.1 'shift', 'centerdc' : same as 'whole' but with the first half of the spectrum swapped with second half to put the zero-frequency value in the middle. (See "help fftshift". If "freq" is vector, 'shift' is ignored. If model coefficients "ar_coeffs" are real, the default range is 'half', otherwise default range is 'whole'.</p></dd></dt>
<dt><span class="term">method:</span>
<dd><p class="para">'fft': use FFT to calculate power spectral density. 'poly': calculate spectral density as a polynomial of 1/z N.B. this argument is ignored if the "freq" argument is a vector. The default is 'poly' unless the "freq" argument is an integer power of 2.</p></dd></dt>
<dt><span class="term">plot_type:</span>
<dd><p class="para">'plot', 'semilogx', 'semilogy', 'loglog', 'squared' or 'db' specifies the type of plot. The default is 'plot', which means linear-linear axes. 'squared' is the same as 'plot'. 'dB' plots "10*log10(psd)". This argument is ignored and a spectrum is not plotted if the caller requires a returned value.</p></dd></dt></dl></div>
<br />
<div class="manualnavbar">
<table width="100%">
<tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
<td width="30%">
<span class="previous"><a href="pwelch.html"><< pwelch</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_cc2bc01c47967d47fcf3507a91d572ba.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="qp_kaiser.html">qp_kaiser >></a></span>
</td>
</tr></table>
<hr />
</div>
</body>
</html>
|