summaryrefslogtreecommitdiff
path: root/help/en_US/peig.xml
diff options
context:
space:
mode:
authorSunil Shetye2018-07-25 17:32:17 +0530
committerSunil Shetye2018-07-26 23:50:17 +0530
commitcdd55940b7a287810e423017c42e7c965815c468 (patch)
treed802563d2d507039354a3cf48e75465b7e7a8d76 /help/en_US/peig.xml
parent1251f70aa3442736ce6fd9c4fb7fbce412af5a52 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-cdd55940b7a287810e423017c42e7c965815c468.tar.gz
FOSSEE-Signal-Processing-Toolbox-cdd55940b7a287810e423017c42e7c965815c468.tar.bz2
FOSSEE-Signal-Processing-Toolbox-cdd55940b7a287810e423017c42e7c965815c468.zip
code changes by Shashikiran Yadalam during FOSSEE Fellowship 2018
Diffstat (limited to 'help/en_US/peig.xml')
-rw-r--r--help/en_US/peig.xml135
1 files changed, 102 insertions, 33 deletions
diff --git a/help/en_US/peig.xml b/help/en_US/peig.xml
index 8c85698..b19c370 100644
--- a/help/en_US/peig.xml
+++ b/help/en_US/peig.xml
@@ -33,52 +33,121 @@
[S,f] = peig(x,p,nfft,fs,nwin,noverlap)
[...] = peig(...,freqrange)
[...,v,e] = peig(...)
-
- Parameters:
- x - int|double - vector|matrix
- Input signal. In case of a matrix, each row of x represents a
+
+
+
+
+
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>x:</term>
+ <listitem><para> int|double - vector|matrix</para>
+<para>Input signal. In case of a matrix, each row of x represents a
seperate observation of the signal. If 'corr' flag is specified,
then x is the correlation matrix.
If w is not specified in the input, it is determined by the
algorithm. If x is real valued, then range of w is [0, pi].
- Otherwise, the range of w is [0, 2pi)
- p - int|double - scalar|vector
- p(1) is the dimension of the signal subspace
+ Otherwise, the range of w is [0, 2pi)</para>
+</listitem></varlistentry>
+ </variablelist>
+
+<variablelist>
+ <varlistentry><term>p:</term>
+ <listitem><para> int|double - scalar|vector</para>
+<para>p(1) is the dimension of the signal subspace
p(2), if specified, represents a threshold that is multiplied by
- the smallest estimated eigenvalue of the signal's correlation matrix.
- w - int|double - vector
- w is the vector of normalized frequencies over which the
- pseuspectrogram is to be computed.
- nfft - int - scalar (Default = 256)
- Length of the fft used to compute pseudospectrum. The length of S
+ the smallest estimated eigenvalue of the signal's correlation matrix.</para>
+
+</listitem></varlistentry>
+ </variablelist>
+
+<variablelist>
+<varlistentry><term>w:</term>
+ <listitem><para> int|double - vector</para>
+<para>w is the vector of normalized frequencies over which the
+ pseuspectrogram is to be computed.</para>
+
+</listitem></varlistentry>
+
+</variablelist>
+
+
+<variablelist>
+<varlistentry><term>nfft:</term>
+ <listitem><para> int - scalar (Default = 256)</para>
+<para>Length of the fft used to compute pseudospectrum. The length of S
(and hence w/f) depends on the type of values in x and nfft.
If x is real, length of s is (nfft/2 + 1) {Range of w = [0, pi]} if
nfft is even and (nfft+1)/2 {Range of w = [0, pi)} otherwise.
- If x is complex, length of s is nfft.
- fs - int|double - scalar (Default = 1)
- Sampling rate. Used to convert the normalized frequencies (w) to
- actual values (f) and vice-versa.
- nwin - int|double - scalar (int only)|vector (Default = 2*p(1))
- If nwin is scalar, it is the length of the rectangular window.
+ If x is complex, length of s is nfft.</para>
+
+</listitem></varlistentry>
+
+</variablelist>
+
+<variablelist>
+<varlistentry><term>fs:</term>
+ <listitem><para> int|double - scalar (Default = 1)</para>
+<para>Sampling rate. Used to convert the normalized frequencies (w) to
+ actual values (f) and vice-versa.</para>
+
+</listitem></varlistentry>
+
+</variablelist>
+
+<variablelist>
+<varlistentry><term>nwin:</term>
+ <listitem><para> int|double - scalar (int only)|vector (Default = 2*p(1))</para>
+<para> If nwin is scalar, it is the length of the rectangular window.
Otherwise, the vector input is considered as the window coefficients.
- Not used if 'corr' flag present.
- If x is a vector, windowing not done in nwin in scalar. If x is a
- matrix,
- noverlap - int - scalar (Default = nwin-1)
- number of points by which successive windows overlap. noverlap not
- used if x is a matrix
- freqrange - string
- The range of frequencies over which the pseudospetrogram is
+ Not used if 'corr' flag present.</para>
+
+</listitem></varlistentry>
+
+</variablelist>
+<variablelist>
+<varlistentry><term>noverlap:</term>
+ <listitem><para> int - scalar (Default = nwin-1)</para>
+<para> number of points by which successive windows overlap. noverlap not
+ used if x is a matrix</para>
+
+</listitem></varlistentry>
+
+</variablelist>
+<variablelist>
+<varlistentry><term>freqrange:</term>
+ <listitem><para> string</para>
+<para>The range of frequencies over which the pseudospetrogram is
computed. Three possible values - 'onesided', 'twosided', 'centered'
'corr' flag
Presence indicates that the primary input x is actually a
correlation matrix
-
- Examples:
- TODO:
-
- </synopsis>
-</refsynopsisdiv>
+ </para>
+
+</listitem></varlistentry>
+
+</variablelist>
+</refsection>
+
+
+
+
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+
+ fs = 100;
+ t = 0:1/fs:1-1/fs;
+ s = 2*sin(2*%pi*25*t)+sin(2*%pi*35*t)+rand(1,100,"normal");
+ [S,w]=peig(s,2,512,fs,'half');
+ plot(w,S);
+ ]]></programlisting>
+</refsection>
<refsection>
<title>See also</title>